[PATCH] Support for AMD64 targets running GNU/kFreeBSD

Robert Millan rmh@gnu.org
Tue Jan 18 20:51:00 GMT 2011


2011/1/14 Robert Millan <rmh@gnu.org>:
> 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]).

Here is it.

-- 
Robert Millan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amd64.diff
Type: text/x-diff
Size: 3644 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110118/c17f44aa/attachment.bin>


More information about the Gcc-patches mailing list