support for FreeBSD and GNU/FreeBSD

Bruno Haible bruno@clisp.org
Mon Jul 8 11:51:00 GMT 2002


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.

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.

Bruno



More information about the Binutils mailing list