From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27914 invoked by alias); 14 Jan 2011 15:37:15 -0000 Received: (qmail 27810 invoked by uid 22791); 14 Jan 2011 15:37:12 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Jan 2011 15:37:05 +0000 Received: by iwn8 with SMTP id 8so2755630iwn.20 for ; Fri, 14 Jan 2011 07:37:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.12.8 with SMTP id v8mr800959ibv.147.1295019422887; Fri, 14 Jan 2011 07:37:02 -0800 (PST) Received: by 10.231.5.153 with HTTP; Fri, 14 Jan 2011 07:37:02 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Jan 2011 15:37:00 -0000 Message-ID: Subject: Re: kfreebsd-gnu etc. issues From: Robert Millan To: "Joseph S. Myers" Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00193.txt.bz2 2011/1/12 Robert Millan : >> * The headers config/kfreebsd-gnu.h etc. override >> =C2=A0GLIBC_DYNAMIC_LINKER. =C2=A0But the 64-bit configurations >> =C2=A0x86_64-*-kfreebsd*-gnu and x86_64-*-knetbsd*-gnu do not appear to >> =C2=A0use any header that would override GLIBC_DYNAMIC_LINKER32 and >> =C2=A0GLIBC_DYNAMIC_LINKER64, which are what LINK_SPEC in linux64.h >> =C2=A0actually uses. =C2=A0Thus those configurations would use Linux-spe= cific >> =C2=A0dynamic 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=3Dmarkup&pathrev=3D1424 [2] http://gcc.gnu.org/ml/gcc-patches/2010-12/msg02055.html --=20 Robert Millan