This is the mail archive of the
mailing list for the binutils project.
Re: support for FreeBSD and GNU/FreeBSD
On Mon, Jul 08, 2002 at 08:45:30PM +0200, Bruno Haible wrote:
> H. J. Lu writes:
> > For all I know, the only reason FreeBSD wants a special target is to
> > run some very OLD static Linux binaries, which don't have the
> > .note.ABI-tag section.
> Nope, I'm not talking about Linux binaries. The patch is about native
> FreeBSD binaries. If you create an executable using the unpatched
> binutils using the original elf_i386 emulation, then it will simply
> *not run* on an unpatched FreeBSD kernel; this affects static binaries
> and the ELF interpreter ld.so.1 itself.
Just fix the GNU/FreeBSD kernel.
> The reason is probably that FreeBSD provides emulations for different
> ABIs; they want the kernel to be able to distinguish a FreeBSD
> executable, a NetBSD executable, an SVR4 executable, a Linux
> executable etc.
Just teach the GNU/FreeBSD kernel about the .note.ABI-tag section.