Embellishing fbsd_* emulations
Geoff Keating
geoffk@geoffk.org
Thu Apr 11 17:00:00 GMT 2002
> Date: Thu, 11 Apr 2002 16:31:52 -0700
> From: "David O'Brien" <obrien@FreeBSD.org>
> 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]?
You really don't want to do the first one. For the second one, you
don't do that in ld; typically, you would add it into crt0 in your
library.
For instance, look at how linux sets EI_OSABI to ELFOSABI_LINUX (it
doesn't), and how it includes a note section (by putting it in
crtsomething in glibc).
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Binutils
mailing list