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
This commit is contained in:
Jason Thorpe 2002-06-08 07:31:42 +00:00 committed by Jason Thorpe
parent 2275e1a80b
commit 523a5f2fac
2 changed files with 11 additions and 16 deletions

View File

@ -1,3 +1,9 @@
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

View 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. */