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


> 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>


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