netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of LINK_SPEC.
authorRichard Earnshaw <rearnsha@arm.com>
Sat, 21 Sep 2002 20:20:55 +0000 (20:20 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Sat, 21 Sep 2002 20:20:55 +0000 (20:20 +0000)
* netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
LINK_SPEC.
(LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
* arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
(LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).

From-SVN: r57397

gcc/ChangeLog
gcc/config/arm/netbsd.h
gcc/config/netbsd-aout.h

index 694dec17a00e6171ab60b88f2c0061b85c894083..92992248880166cb0d89649b06e99afa43dbd94e 100644 (file)
@@ -1,3 +1,11 @@
+2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
+
+       * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
+       LINK_SPEC.
+       (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
+       * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
+       (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
+
 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
 
        PR opt/7930
index ac6da05105bc5091272f5d16f3925e1740d993e3..765bfb50663763d1a4dcb4217fd0633401412053 100644 (file)
@@ -54,7 +54,8 @@ Boston, MA 02111-1307, USA.  */
 
 #undef SUBTARGET_EXTRA_SPECS
 #define SUBTARGET_EXTRA_SPECS \
-  { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
+  { "netbsd_cpp_spec",  NETBSD_CPP_SPEC }, \
+  { "netbsd_link_spec", NETBSD_LINK_SPEC_AOUT },
 
 #undef CPP_SPEC
 #define CPP_SPEC "\
@@ -71,10 +72,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Pass -X to the linker so that it will strip symbols starting with 'L' */
 #undef LINK_SPEC
-#define LINK_SPEC "\
--X %{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} \
-%{static:-Bstatic}} %{shared} %{assert*} \
-"
+#define LINK_SPEC "-X %(netbsd_link_spec)"
 
 #undef SIZE_TYPE
 #define SIZE_TYPE "unsigned int"
index d8ab4a46f5bb2fba14f7898e0d37f6d7169d28b5..6afcfd9d37ed1f7e41b98a8baf12235705ce2fc3 100644 (file)
@@ -58,8 +58,8 @@ Boston, MA 02111-1307, USA.  */
 /* Provide a LINK_SPEC appropriate for NetBSD a.out.  Here we provide
    support for the special GCC options -static, -assert, and -nostdlib.  */
 
-#undef LINK_SPEC
-#define LINK_SPEC                      \
+#undef NETBSD_LINK_SPEC_AOUT
+#define NETBSD_LINK_SPEC_AOUT          \
   "%{nostdlib:-nostdlib}               \
    %{!shared:                          \
      %{!nostdlib:                      \
@@ -71,6 +71,9 @@ Boston, MA 02111-1307, USA.  */
    %{R*}                               \
    %{assert*}"
 
+/* Default LINK_SPEC.  */
+#undef LINK_SPEC
+#define LINK_SPEC NETBSD_LINK_SPEC_AOUT
 
 /* Some imports from svr4.h in support of shared libraries.  */