minor patch to ld/emultempl/elf32.em
David O'Brien
obrien@FreeBSD.org
Wed Jan 3 18:20:00 GMT 2001
On Thu, Jan 04, 2001 at 01:13:53PM +1100, matthew green wrote:
> : This patch only activates the Linux processing when targeting Linux (and
> : makes room for simular processing when targeting FreeBSD). I created ld
> : targeting i686-pc-linux-gnu and did `make check' and things looked OK,
> : along with a `make check' on FreeBSD 4.2.
>
> Why is this patch necessary ? Ie what harm is there in checking
> ld.so.conf on non-Linux based systems ?
>
> i'm not sure if this _is_ an issue, but other systems besides linux have
> an /etc/ld.so.conf and they do not all have the same semantics.
Correct. `ld.so' is the a.out version on FreeBSD, the ELF one being
`ld-elf.so'. Also it just feels "unclean" to have a Linux'ism creep into
other targets and IMHO just isn't right. Also, FreeBSD has simular (but
different needs) and I'll be submitting the FreeBSD version soon.
--
-- David (obrien@FreeBSD.org)
More information about the Binutils
mailing list