Commit 854928a0 by Jason Thorpe Committed by Jason Thorpe

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

* config/alpha/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: r54361
parent 6bb5d2e7
2002-06-08 Jason Thorpe <thorpej@wasabisystems.com> 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
* config/alpha/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/netbsd-elf.h (LINK_SPEC): Rename to... * config/netbsd-elf.h (LINK_SPEC): Rename to...
(NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point) (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
to specify program entry point. to specify program entry point.
......
...@@ -41,28 +41,20 @@ Boston, MA 02111-1307, USA. */ ...@@ -41,28 +41,20 @@ Boston, MA 02111-1307, USA. */
#undef SUBTARGET_EXTRA_SPECS #undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \ #define SUBTARGET_EXTRA_SPECS \
{ "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 },
/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. /* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. */
This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for
the alpha target. */
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"%{G*} %{relax:-relax} \ "%{G*} %{relax:-relax} \
%{O*:-O3} %{!O*:-O1} \ %{O*:-O3} %{!O*:-O1} \
%{assert*} %{R*} \ %(netbsd_link_spec)"
%{shared:-shared} \
%{!shared: \ #define NETBSD_ENTRY_POINT "__start"
-dc -dp \
%{!nostdlib: \
%{!r*: \
%{!e*:-e __start}}} \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"
/* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we /* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we
......
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