This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: kfreebsd-gnu etc. issues
2011/1/12 Robert Millan <rmh@gnu.org>:
>> * The headers config/kfreebsd-gnu.h etc. override
>> ÂGLIBC_DYNAMIC_LINKER. ÂBut the 64-bit configurations
>> Âx86_64-*-kfreebsd*-gnu and x86_64-*-knetbsd*-gnu do not appear to
>> Âuse any header that would override GLIBC_DYNAMIC_LINKER32 and
>> ÂGLIBC_DYNAMIC_LINKER64, which are what LINK_SPEC in linux64.h
>> Âactually uses. ÂThus those configurations would use Linux-specific
>> Âdynamic linker settings, which seems unlikely to be as intended.
>
> It's not as intended. On amd64 we use /lib/ld.so.1 and
> /lib/ld-kfreebsd-x86-64.so.1.
It seems x86_64-kfreebsd-gnu has been broken for a while. I
just realized that I wrote a patch to fix this in 2006 [1], but
somehow it was never merged in GCC (actually I'm not even
sure I submitted it).
In the meantime Debian GNU/kFreeBSD has been using this
patch to build GCC on their "kfreebsd-amd64" port.
I can prepare an updated version of this patch (relative to
trunk + your linux.h overhaul [2]).
[1] http://svn.debian.org/viewsvn/glibc-bsd/trunk/web/patches/upstream-only/gcc.diff?view=markup&pathrev=1424
[2] http://gcc.gnu.org/ml/gcc-patches/2010-12/msg02055.html
--
Robert Millan