This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
support for GNU/FreeBSD
- From: Bruno Haible <bruno at clisp dot org>
- To: binutils at sources dot redhat dot com
- Cc: "David O'Brien" <obrien at FreeBSD dot org>
- Date: Thu, 4 Jul 2002 20:05:11 +0200 (CEST)
- Subject: support for GNU/FreeBSD
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 <bruno@clisp.org>
* configure.in: Add support for GNU/FreeBSD systems.
ChangeLog:
2002-07-04 Bruno Haible <bruno@clisp.org>
* 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].*)