This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Embellishing fbsd_* emulations


On Thu, Apr 11, 2002 at 04:31:52PM -0700, David O'Brien wrote:
> Now that I have my set of emulations (fbsd_*) to play with, I would like
> to set i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD and add a
> .note.ABI-tag section.  How would I do that [using ld/emulparams/*_fbsd.sh]?

There are currently no hooks to allow changing EI_OSABI from the linker.

ld_write->bfd_final_link->_bfd_elf_compute_section_file_positions->
prep_headers clears anything that you might set up with the emulation
code, although I suppose that could be changed.  The normal way to
change EI_OSABI is via elf_backend_post_process_headers, which means
you'd need a new bfd target.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]