Embellishing fbsd_* emulations
Alan Modra
amodra@bigpond.net.au
Thu Apr 11 18:29:00 GMT 2002
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
More information about the Binutils
mailing list