From 0b3e17e93db61947b03f2aa945d0f26cf86f8cf8 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 28 Aug 2007 11:02:55 +0000 Subject: [PATCH] Add support for i386-dragonfly target. --- bfd/ChangeLog | 6 ++++++ bfd/config.bfd | 2 +- bfd/configure | 6 ++++-- bfd/configure.in | 4 +++- gas/ChangeLog | 4 ++++ gas/configure.tgt | 2 +- ld/ChangeLog | 5 +++++ ld/configure.host | 4 ++-- ld/configure.tgt | 6 +++--- 9 files changed, 29 insertions(+), 10 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5c6401a21c5..297cec93594 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-08-28 Robert Sebastian Gerus + + * config.bfd: Add support for i[3-7]86-*-dragonfly*. + * configure.in: Likewise. + * configure: Regenerate. + 2007-08-25 Ulrich Weigand Alan Modra diff --git a/bfd/config.bfd b/bfd/config.bfd index c533f573889..5bfd4a72685 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -533,7 +533,7 @@ case "${targ}" in targ_selvecs=i386bsd_vec targ_underscore=yes ;; - i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) + i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) targ_defvec=bfd_elf32_i386_freebsd_vec targ_selvecs=i386coff_vec # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling. diff --git a/bfd/configure b/bfd/configure index ec3df5c9721..ac5e66fb76e 100755 --- a/bfd/configure +++ b/bfd/configure @@ -17463,7 +17463,7 @@ if test "${target}" = "${host}"; then COREFILE=trad-core.lo TRAD_HEADER='"hosts/i386bsd.h"' ;; - i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) + i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) COREFILE='' TRAD_HEADER='"hosts/i386bsd.h"' ;; @@ -19068,6 +19068,8 @@ do bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; + bfd_elf32_i386_dragonfly_vec) + tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; @@ -22284,7 +22286,7 @@ done # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but diff --git a/bfd/configure.in b/bfd/configure.in index b7946e7a53e..aecda8b219b 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -248,7 +248,7 @@ changequote([,])dnl TRAD_HEADER='"hosts/i386bsd.h"' ;; changequote(,)dnl - i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) + i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) changequote([,])dnl COREFILE='' TRAD_HEADER='"hosts/i386bsd.h"' @@ -646,6 +646,8 @@ do bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; + bfd_elf32_i386_dragonfly_vec) + tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; diff --git a/gas/ChangeLog b/gas/ChangeLog index 1e8d61a7c21..f10df64ddc8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2007-08-28 Robert Sebastian Gerus + + * configure.tgt: Add support for i[3-7]86-*-dragonfly*. + 2007-08-24 Joseph Myers Paul Brook diff --git a/gas/configure.tgt b/gas/configure.tgt index 3b7fb19f310..de1b676e5fa 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -198,7 +198,7 @@ case ${generic_target} in i386-*-freebsdaout*) fmt=aout em=386bsd ;; i386-*-freebsd[12].*) fmt=aout em=386bsd ;; i386-*-freebsd[12]) fmt=aout em=386bsd ;; - i386-*-freebsd* | i386-*-kfreebsd*-gnu) + i386-*-freebsd* | i386-*-kfreebsd*-gnu | i386-*-dragonfly*) fmt=elf em=freebsd ;; i386-*-sysv*) fmt=coff ;; i386-*-sco3.2v5*coff) fmt=coff ;; diff --git a/ld/ChangeLog b/ld/ChangeLog index 537766c0122..957593469ac 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2007-08-28 Robert Sebastian Gerus + + * configure.host: Add support for i[3-7]86-*-dragonfly*. + * configure.tgt: Likewise. + 2007-08-18 Alan Modra * ld.texinfo (Input Section Basics): Correct EXCLUDE_FILE example. diff --git a/ld/configure.host b/ld/configure.host index be0307cb0ce..9174971cb42 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -18,7 +18,7 @@ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ]; then libgcc=../gcc/libgcc.a; else libg case "${host}" in -*-*-freebsd* | *-*-kfreebsd*-gnu) +*-*-freebsd* | *-*-kfreebsd*-gnu | *-*-dragonfly*) HOSTING_CRT0='-dynamic-linker `[ -f \`${CC} --print-prog-name=ld-elf.so.1\` ] || echo /usr/libexec/``${CC} --print-prog-name=ld-elf.so.1` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `${CC} --print-file-name=crtbegin.o`' HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\`` '"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`' ;; @@ -233,7 +233,7 @@ x86_64-*-linux-*) HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux-x86-64.so.2,"` ;; -*-*-freebsd* | *-*-kfreebsd*-gnu) +*-*-freebsd* | *-*-kfreebsd*-gnu | *-*-dragonfly*) ;; *-*-linux*) diff --git a/ld/configure.tgt b/ld/configure.tgt index 1591571a3d9..d4f53ef2593 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -237,7 +237,7 @@ x86_64-*-elf*) targ_emul=elf_x86_64 i[3-7]86-*-kaos*) targ_emul=elf_i386 ;; i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12]) targ_emul=i386bsd ;; -i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) +i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) targ_emul=elf_i386_fbsd targ_extra_emuls="elf_i386 i386bsd" ;; x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) @@ -640,7 +640,7 @@ esac NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib' case "${target}" in -*-*-freebsd*) +*-*-freebsd* | *-*-dragonfly*) NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib' ;; @@ -680,7 +680,7 @@ i[03-9x]86-*-cygwin*) *-*-linux*) ;; -*-*-freebsd*) +*-*-freebsd* | *-*-dragonfly*) ;; *-*-netbsd*) -- 2.30.2