Commit 5a721dab by Richard Earnshaw Committed by Richard Earnshaw

config.gcc (*-*-netbsdelf*): Set up generic parameters.

* config.gcc (*-*-netbsdelf*): Set up generic parameters.
(*-*-netbsd*): Always use collect2.  Remove collect2 settings from
other non-elf netbsd config frags.
* config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
collect2 will does that.
* config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
shared-lib frobbing will work.

From-SVN: r49285
parent da1775d6
2002-01-28 Richard Earnshaw <rearnsha@arm.com>
* config.gcc (*-*-netbsdelf*): Set up generic parameters.
(*-*-netbsd*): Always use collect2. Remove collect2 settings from
other non-elf netbsd config frags.
* config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
collect2 will does that.
* config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
shared-lib frobbing will work.
2002-01-28 Kazu Hirata <kazu@hxi.com> 2002-01-28 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.h: Fix formatting. * config/h8300/h8300.h: Fix formatting.
......
...@@ -319,11 +319,19 @@ case $machine in ...@@ -319,11 +319,19 @@ case $machine in
tmake_file="${tmake_file} t-openbsd-thread" tmake_file="${tmake_file} t-openbsd-thread"
fi fi
;; ;;
*-*-netbsdelf*)
tmake_file="t-libc-ok t-netbsd"
xm_defines=POSIX
gas=yes
gnu_ld=yes
;;
*-*-netbsd*) *-*-netbsd*)
# Traditional a.out systems need to use collect2
tmake_file="t-libc-ok t-netbsd" tmake_file="t-libc-ok t-netbsd"
xm_defines=POSIX xm_defines=POSIX
gas=yes gas=yes
gnu_ld=yes gnu_ld=yes
use_collect2=yes
;; ;;
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
# This is the place-holder for the generic a.out configuration # This is the place-holder for the generic a.out configuration
...@@ -632,7 +640,6 @@ arm*-*-freebsd*|strongarm*-*-freebsd*) ...@@ -632,7 +640,6 @@ arm*-*-freebsd*|strongarm*-*-freebsd*)
arm*-*-netbsd*) arm*-*-netbsd*)
tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h" tm_file="arm/aout.h arm/arm.h netbsd.h netbsd-aout.h arm/netbsd.h"
tmake_file="t-netbsd arm/t-netbsd" tmake_file="t-netbsd arm/t-netbsd"
use_collect2=yes
;; ;;
arm*-*-linux*) # ARM GNU/Linux with ELF arm*-*-linux*) # ARM GNU/Linux with ELF
tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h" tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
...@@ -1150,7 +1157,6 @@ i[34567]86-*-netbsdelf*) ...@@ -1150,7 +1157,6 @@ i[34567]86-*-netbsdelf*)
i[34567]86-*-netbsd*) i[34567]86-*-netbsd*)
tm_file=i386/netbsd.h tm_file=i386/netbsd.h
tmake_file=t-netbsd tmake_file=t-netbsd
use_collect2=yes
;; ;;
x86_64-*-netbsd*) x86_64-*-netbsd*)
tm_file="${tm_file} i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h" tm_file="${tm_file} i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
...@@ -1936,7 +1942,6 @@ m68k*-*-netbsd*) ...@@ -1936,7 +1942,6 @@ m68k*-*-netbsd*)
tm_file=m68k/netbsd.h tm_file=m68k/netbsd.h
tmake_file=t-netbsd tmake_file=t-netbsd
float_format=m68k float_format=m68k
use_collect2=yes
;; ;;
m68k*-*-openbsd*) m68k*-*-openbsd*)
# needed to unconfuse gdb # needed to unconfuse gdb
...@@ -2606,7 +2611,6 @@ ns32k-*-netbsd*) ...@@ -2606,7 +2611,6 @@ ns32k-*-netbsd*)
tm_file=ns32k/netbsd.h tm_file=ns32k/netbsd.h
# On NetBSD, the headers are already okay, except for math.h. # On NetBSD, the headers are already okay, except for math.h.
tmake_file=t-netbsd tmake_file=t-netbsd
use_collect2=yes
;; ;;
pdp11-*-bsd) pdp11-*-bsd)
tm_file="${tm_file} pdp11/2bsd.h" tm_file="${tm_file} pdp11/2bsd.h"
...@@ -2917,7 +2921,6 @@ sparc-*-aout*) ...@@ -2917,7 +2921,6 @@ sparc-*-aout*)
sparc-*-netbsd*) sparc-*-netbsd*)
tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h" tm_file="${tm_file} sparc/aout.h netbsd.h netbsd-aout.h sparc/netbsd.h"
tmake_file=t-netbsd tmake_file=t-netbsd
use_collect2=yes
;; ;;
sparc-*-openbsd*) sparc-*-openbsd*)
tm_file="sparc/sparc.h ${tm_file}" tm_file="sparc/sparc.h ${tm_file}"
...@@ -3232,7 +3235,6 @@ vax-*-netbsd*) ...@@ -3232,7 +3235,6 @@ vax-*-netbsd*)
tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h" tm_file="${tm_file} netbsd.h netbsd-aout.h vax/netbsd.h"
tmake_file=t-netbsd tmake_file=t-netbsd
float_format=vax float_format=vax
use_collect2=yes
;; ;;
vax-*-openbsd*) vax-*-openbsd*)
tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}" tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
......
...@@ -45,8 +45,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -45,8 +45,7 @@ Boston, MA 02111-1307, USA. */
%{p:mcrt0%O%s} \ %{p:mcrt0%O%s} \
%{!p: \ %{!p: \
%{!static:crt0%O%s} \ %{!static:crt0%O%s} \
%{static:scrt0%O%s}}}} \ %{static:scrt0%O%s}}}}"
%{shared:c++rt0%O%s}"
/* Provide a LINK_SPEC appropriate for NetBSD a.out. Here we provide /* Provide a LINK_SPEC appropriate for NetBSD a.out. Here we provide
support for the special GCC options -static, -assert, and -nostdlib. */ support for the special GCC options -static, -assert, and -nostdlib. */
......
...@@ -70,12 +70,12 @@ ...@@ -70,12 +70,12 @@
"%{!symbolic: \ "%{!symbolic: \
%{!shared: \ %{!shared: \
%{!p: \ %{!p: \
%{!pg:-lgcc}}} \ %{!pg: -lgcc}}} \
%{shared:-lgcc_pic} \ %{shared: -lgcc_pic} \
%{p:-lgcc_p} \ %{p: -lgcc_p} \
%{pg:-lgcc_p}}" %{pg: -lgcc_p}}"
#else #else
#define LIBGCC_SPEC "%{!shared:%{!symbolic:-lgcc}}" #define LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
#endif #endif
/* When building shared libraries, the initialization and finalization /* When building shared libraries, the initialization and finalization
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment