netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
authorJason Thorpe <thorpej@wasabisystems.com>
Sat, 8 Jun 2002 06:13:35 +0000 (06:13 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Sat, 8 Jun 2002 06:13:35 +0000 (06:13 +0000)
* config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
netbsd_link_spec and netbsd_entry_point.
(LINK_SPEC): Use %(netbsd_link_spec).
(NETBSD_ENTRY_POINT): Define.

From-SVN: r54361

gcc/ChangeLog
gcc/config/alpha/netbsd.h

index 7cafa394c6906325d4e3202e0fac359c4b46f32d..8623babd4ae74570b2b7a712b2a6aa434155868d 100644 (file)
@@ -1,3 +1,10 @@
+2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
+       netbsd_link_spec and netbsd_entry_point.
+       (LINK_SPEC): Use %(netbsd_link_spec).
+       (NETBSD_ENTRY_POINT): Define.
+
 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * config/netbsd-elf.h (LINK_SPEC): Rename to...
index 76f5a442e1457450af8a5065a87d9f8db08ff506..60e7f1fc7af56d798044113df74ed135b422f2f0 100644 (file)
@@ -41,28 +41,20 @@ 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_ELF },        \
+  { "netbsd_entry_point", NETBSD_ENTRY_POINT },
 
 
-/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target.
-   This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
-   the alpha target.  */
+/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target.  */
 
 #undef LINK_SPEC
-#define LINK_SPEC                                                      \
-  "%{G*} %{relax:-relax}                                               \
-   %{O*:-O3} %{!O*:-O1}                                                        \
-   %{assert*} %{R*}                                                    \
-   %{shared:-shared}                                                   \
-   %{!shared:                                                          \
-     -dc -dp                                                           \
-     %{!nostdlib:                                                      \
-       %{!r*:                                                          \
-        %{!e*:-e __start}}}                                            \
-     %{!static:                                                                \
-       %{rdynamic:-export-dynamic}                                     \
-       %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}      \
-     %{static:-static}}"
+#define LINK_SPEC \
+  "%{G*} %{relax:-relax} \
+   %{O*:-O3} %{!O*:-O1} \
+   %(netbsd_link_spec)"
+
+#define NETBSD_ENTRY_POINT "__start"
 
 
 /* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF.  Here we