OSDN Git Service

* config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
authorthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Jun 2002 07:31:42 +0000 (07:31 +0000)
committerthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Jun 2002 07:31:42 +0000 (07:31 +0000)
(LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
(NETBSD_ENTRY_POINT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54368 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/netbsd-elf.h

index 0bfcc66..adffa92 100644 (file)
@@ -1,5 +1,11 @@
 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
 
+       * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
+       (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
+       (NETBSD_ENTRY_POINT): Define.
+
+2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
+
        * config/i386/netbsd-elf.h (LINK_SPEC): Define as
        NETBSD_LINK_SPEC_ELF.
        (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
index 6d36d2e..9229144 100644 (file)
@@ -58,7 +58,8 @@ Boston, MA 02111-1307, USA.  */
   { "cpp_cpu_spec",         CPP_CPU_SPEC }, \
   { "cpp_fpu_spec",         CPP_FPU_SPEC }, \
   { "asm_default_spec",     ASM_DEFAULT_SPEC }, \
-  { "netbsd_cpp_spec",      NETBSD_CPP_SPEC },
+  { "netbsd_cpp_spec",      NETBSD_CPP_SPEC }, \
+  { "netbsd_entry_point",   NETBSD_ENTRY_POINT },
 
 
 #define CPP_CPU_SPEC \
@@ -106,24 +107,12 @@ Boston, MA 02111-1307, USA.  */
     %{m68010} %{m68020} %{m68030} %{m68040} %{m68060} \
     %{fpic:-k} %{fPIC:-k -K}"
 
-/* Provide a LINK_SPEC appropriate for a NetBSD/m68k ELF target.
-   This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
-   the m68k target.  */
+/* Provide a LINK_SPEC appropriate for a NetBSD/m68k ELF target.  */
 
 #undef LINK_SPEC
-#define LINK_SPEC                                                      \
-  "%{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 NETBSD_LINK_SPEC_ELF
 
+#define NETBSD_ENTRY_POINT "_start"
 
 /* Output assembler code to FILE to increment profiler label # LABELNO
    for profiling a function only.  */