aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-06-08 16:31:14 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-06-08 16:31:14 +0000
commitcfb06024b8cd84edf9a5361039a9b6fcd93b579e (patch)
tree2ecb98b7ba7bc2c9de2c42d5be361a2847410bca
parent497e42fdf42946fee632736ade32feeca03ced5c (diff)
downloadgcc-cfb06024b8cd84edf9a5361039a9b6fcd93b579e.zip
gcc-cfb06024b8cd84edf9a5361039a9b6fcd93b579e.tar.gz
gcc-cfb06024b8cd84edf9a5361039a9b6fcd93b579e.tar.bz2
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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/sparc/netbsd-elf.h49
2 files changed, 27 insertions, 30 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c2a96df..495702c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+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>
* lists.c (free_list): Fix typo in comment.
diff --git a/gcc/config/sparc/netbsd-elf.h b/gcc/config/sparc/netbsd-elf.h
index 40d881d..275cdbf 100644
--- a/gcc/config/sparc/netbsd-elf.h
+++ b/gcc/config/sparc/netbsd-elf.h
@@ -197,35 +197,22 @@ Boston, MA 02111-1307, USA. */
/* Make sure we use the right output format. Pick a default and then
make sure -m32/-m64 switch to the right one. */
-#define LINK_ARCH32_SPEC \
- "%-m elf32_sparc \
- %{assert*} %{R*} %{V} %{v:%{!V:-V}} \
- %{shared:-shared} \
- %{!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_ARCH64_SPEC \
- "%-m elf64_sparc \
- %{assert*} %{R*} %{V} %{v:%{!V:-V}} \
- %{shared:-shared} \
- %{!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)}} \
-"
+#define LINK_ARCH32_SPEC "-m elf32_sparc"
+
+#define LINK_ARCH64_SPEC "-m elf64_sparc"
+
+#define LINK_ARCH_SPEC \
+ "%{m32:%(link_arch32)} \
+ %{m64:%(link_arch64)} \
+ %{!m32:%{!m64:%(link_arch_default)}}"
+
+#undef LINK_SPEC
+#define LINK_SPEC \
+ "%(link_arch) \
+ %{!mno-relax:%{!r:-relax}} \
+ %(netbsd_link_spec)"
+
+#define NETBSD_ENTRY_POINT "__start"
#if DEFAULT_ARCH32_P
#define LINK_ARCH_DEFAULT_SPEC LINK_ARCH32_SPEC
@@ -240,7 +227,9 @@ Boston, MA 02111-1307, USA. */
{ "link_arch64", LINK_ARCH64_SPEC }, \
{ "link_arch_default", LINK_ARCH_DEFAULT_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? */