Commit 1569d670 by Jason Thorpe Committed by Jason Thorpe

netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.

* config/mips/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: r54385
parent c238d806
2002-06-08 Jason Thorpe <thorpej@wasabisystems.com> 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
* config/mips/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/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
linker emulation. linker emulation.
(LINK_ARCH64_SPEC): Likewise. (LINK_ARCH64_SPEC): Likewise.
......
...@@ -118,7 +118,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -118,7 +118,9 @@ Boston, MA 02111-1307, USA. */
#undef SUBTARGET_EXTRA_SPECS #undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \ #define SUBTARGET_EXTRA_SPECS \
{ "subtarget_endian_default", SUBTARGET_ENDIAN_DEFAULT_SPEC }, \ { "subtarget_endian_default", SUBTARGET_ENDIAN_DEFAULT_SPEC }, \
{ "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 },
#if TARGET_ENDIAN_DEFAULT != 0 #if TARGET_ENDIAN_DEFAULT != 0
#define SUBTARGET_ENDIAN_DEFAULT_SPEC "-D__MIPSEB__" #define SUBTARGET_ENDIAN_DEFAULT_SPEC "-D__MIPSEB__"
...@@ -137,23 +139,14 @@ Boston, MA 02111-1307, USA. */ ...@@ -137,23 +139,14 @@ Boston, MA 02111-1307, USA. */
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"%{assert*} %{R*} %{rpath*} \ "%{EL:-m elf32lmip} \
%{EL:-m elf32lmip} \
%{EB:-m elf32bmip} \ %{EB:-m elf32bmip} \
%(endian_spec) \ %(endian_spec) \
%{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \ %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
%{bestGnum} %{call_shared} %{no_archive} %{exact_version} \ %{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
%{shared:-shared} \ %(netbsd_link_spec)"
%{!shared: \
-dc -dp \
%{!nostdlib: \
%{!r*: \
%{!e*:-e __start}}} \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"
#define NETBSD_ENTRY_POINT "__start"
#undef SUBTARGET_ASM_SPEC #undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC \ #define SUBTARGET_ASM_SPEC \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment