This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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].*)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]