aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68k/netbsd-elf.h
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-06-08 07:31:42 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-06-08 07:31:42 +0000
commit523a5f2fac726ecfb6fad72498ee483db9961df8 (patch)
tree91664126310b30e8c5bce65d054fc8cca42e7c5e /gcc/config/m68k/netbsd-elf.h
parent2275e1a80bc15d5c9104aeeb5915fb4d3c8d3ce2 (diff)
downloadgcc-523a5f2fac726ecfb6fad72498ee483db9961df8.zip
gcc-523a5f2fac726ecfb6fad72498ee483db9961df8.tar.gz
gcc-523a5f2fac726ecfb6fad72498ee483db9961df8.tar.bz2
netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
* config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point. (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF. (NETBSD_ENTRY_POINT): Define. From-SVN: r54368
Diffstat (limited to 'gcc/config/m68k/netbsd-elf.h')
-rw-r--r--gcc/config/m68k/netbsd-elf.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/gcc/config/m68k/netbsd-elf.h b/gcc/config/m68k/netbsd-elf.h
index 6d36d2e..9229144 100644
--- a/gcc/config/m68k/netbsd-elf.h
+++ b/gcc/config/m68k/netbsd-elf.h
@@ -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. */