Commit cfb06024 by Jason Thorpe Committed by Jason Thorpe

netbsd-elf.h (LINK_ARCH32_SPEC): Only specify linker emulation.

* config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
linker emulation.
(LINK_ARCH64_SPEC): Likewise.
(LINK_SPEC, NETBSD_ENTRY_POINT): Define.
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.

From-SVN: r54382
parent 497e42fd
2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
* config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
linker emulation.
(LINK_ARCH64_SPEC): Likewise.
(LINK_SPEC, NETBSD_ENTRY_POINT): Define.
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2002-06-08 Marc Espie <espie@openbsd.org> 2002-06-08 Marc Espie <espie@openbsd.org>
* lists.c (free_list): Fix typo in comment. * lists.c (free_list): Fix typo in comment.
......
...@@ -197,35 +197,22 @@ Boston, MA 02111-1307, USA. */ ...@@ -197,35 +197,22 @@ Boston, MA 02111-1307, USA. */
/* Make sure we use the right output format. Pick a default and then /* Make sure we use the right output format. Pick a default and then
make sure -m32/-m64 switch to the right one. */ make sure -m32/-m64 switch to the right one. */
#define LINK_ARCH32_SPEC \ #define LINK_ARCH32_SPEC "-m elf32_sparc"
"%-m elf32_sparc \
%{assert*} %{R*} %{V} %{v:%{!V:-V}} \ #define LINK_ARCH64_SPEC "-m elf64_sparc"
%{shared:-shared} \
%{!shared: \ #define LINK_ARCH_SPEC \
-dp \ "%{m32:%(link_arch32)} \
%{!nostdlib:%{!r*:%{!e*:-e __start}}} \ %{m64:%(link_arch64)} \
%{!static: \ %{!m32:%{!m64:%(link_arch_default)}}"
-dy %{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \ #undef LINK_SPEC
%{static:-static}}" #define LINK_SPEC \
"%(link_arch) \
#define LINK_ARCH64_SPEC \ %{!mno-relax:%{!r:-relax}} \
"%-m elf64_sparc \ %(netbsd_link_spec)"
%{assert*} %{R*} %{V} %{v:%{!V:-V}} \
%{shared:-shared} \ #define NETBSD_ENTRY_POINT "__start"
%{!shared: \
-dp \
%{!nostdlib:%{!r*:%{!e*:-e __start}}} \
%{!static: \
-dy %{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"
#define LINK_ARCH_SPEC "\
%{m32:%(link_arch32)} \
%{m64:%(link_arch64)} \
%{!m32:%{!m64:%(link_arch_default)}} \
"
#if DEFAULT_ARCH32_P #if DEFAULT_ARCH32_P
#define LINK_ARCH_DEFAULT_SPEC LINK_ARCH32_SPEC #define LINK_ARCH_DEFAULT_SPEC LINK_ARCH32_SPEC
...@@ -240,7 +227,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -240,7 +227,9 @@ Boston, MA 02111-1307, USA. */
{ "link_arch64", LINK_ARCH64_SPEC }, \ { "link_arch64", LINK_ARCH64_SPEC }, \
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \ { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
{ "link_arch", LINK_ARCH_SPEC }, \ { "link_arch", LINK_ARCH_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 },
/* What extra switches do we need? */ /* What extra switches do we need? */
......
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