From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24812 invoked by alias); 4 Jul 2002 18:03:14 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24518 invoked from network); 4 Jul 2002 18:03:07 -0000 Received: from unknown (HELO sceaux.ilog.fr) (193.55.64.10) by sources.redhat.com with SMTP; 4 Jul 2002 18:03:07 -0000 Received: from ftp.ilog.fr (ftp.ilog.fr [193.55.64.11]) by sceaux.ilog.fr (8.11.6/8.11.6) with SMTP id g64I06i22681 for ; Thu, 4 Jul 2002 20:00:11 +0200 (MET DST) Received: from laposte.ilog.fr ([193.55.64.67]) by ftp.ilog.fr (NAVGW 2.5.1.16) with SMTP id M2002070420025914610 ; Thu, 04 Jul 2002 20:02:59 +0200 Received: from honolulu.ilog.fr ([172.17.4.95]) by laposte.ilog.fr (8.11.6/8.11.5) with ESMTP id g64I2ww05641; Thu, 4 Jul 2002 20:02:58 +0200 (MET DST) Received: (from haible@localhost) by honolulu.ilog.fr (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id UAA17969; Thu, 4 Jul 2002 20:05:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15652.36439.724786.981435@honolulu.ilog.fr> Date: Thu, 04 Jul 2002 13:14:00 -0000 From: Bruno Haible To: binutils@sources.redhat.com Cc: "David O'Brien" Subject: support for GNU/FreeBSD X-SW-Source: 2002-07/txt/msg00105.txt.bz2 Hi, Some people are working on a system with glibc and FreeBSD kernel. This system has been assigned the canonical target name i486-pc-freebsd[4.X]-gnu. Here is a patch to add support for this system. On one hand, it uses te-freebsd.h so that the assembler can be used for the FreeBSD kernel. On the other hand, it defines _GNU_SOURCE, as usually recommended on Linux. Note that the first patch (below) needs to add support only for the i386 version of FreeBSD; the alpha version of FreeBSD does not need modifications to gas/configure.in. gas/ChangeLog: 2002-07-04 Bruno Haible * configure.in: Add support for GNU/FreeBSD systems. ChangeLog: 2002-07-04 Bruno Haible * configure.in: Add support for GNU/FreeBSD systems. *** binutils-2.12.90.0.14/gas/configure.in.bak Wed Jun 19 06:41:59 2002 --- binutils-2.12.90.0.14/gas/configure.in Wed Jul 3 00:21:08 2002 *************** *** 277,282 **** --- 277,283 ---- i386-*-freebsdaout* | i386-*-freebsd[12].* | i386-*-freebsd[12]) fmt=aout em=386bsd ;; changequote([,])dnl + i386-*-freebsd*-gnu*) fmt=elf em=freebsd bfd_gas=yes ;; i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*) fmt=coff ;; i386-*-sco3.2v5*) fmt=elf *** binutils-2.12.90.0.14/configure.in.bak Wed Jun 26 18:24:56 2002 --- binutils-2.12.90.0.14/configure.in Wed Jul 3 00:21:08 2002 *************** *** 377,383 **** alpha*-*-*) target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" ;; ! *-*-linux*) target_makefile_frag="${target_makefile_frag} config/mt-linux" ;; *-*-aix4.[3456789]* | *-*-aix[56789].*) --- 377,383 ---- alpha*-*-*) target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" ;; ! *-*-linux* | *-*-freebsd*-gnu*) target_makefile_frag="${target_makefile_frag} config/mt-linux" ;; *-*-aix4.[3456789]* | *-*-aix[56789].*)