summaryrefslogtreecommitdiff
path: root/gcc/config/netbsd-elf.h
diff options
context:
space:
mode:
authorthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-08 06:07:11 +0000
committerthorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-08 06:07:11 +0000
commit5d219ecb6f269ca13e0a94f4ef1e6a44880783ae (patch)
tree4b3850a4c360f13c5f99551447512b3694c17371 /gcc/config/netbsd-elf.h
parent936082bba3ca648381a292669edd2dbcaffdd840 (diff)
downloadgcc-5d219ecb6f269ca13e0a94f4ef1e6a44880783ae.tar.gz
* config/netbsd-elf.h (LINK_SPEC): Rename to...
(NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point) to specify program entry point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/netbsd-elf.h')
-rw-r--r--gcc/config/netbsd-elf.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/gcc/config/netbsd-elf.h b/gcc/config/netbsd-elf.h
index 6e69e80fa6f..40ed3aa0798 100644
--- a/gcc/config/netbsd-elf.h
+++ b/gcc/config/netbsd-elf.h
@@ -67,18 +67,22 @@ Boston, MA 02111-1307, USA. */
/* Provide a LINK_SPEC appropriate for NetBSD ELF. Here we provide
support for the special GCC options -assert, -R, -rpath, -shared,
- -nostdlib, -static, -rdynamic, and -dynamic-linker. */
-
-#undef LINK_SPEC
-#define LINK_SPEC \
- "%{assert*} %{R*} %{rpath*} \
- %{shared:-shared} \
- %{!shared: \
- -dc -dp \
- %{!nostdlib: \
- %{!r*: \
- %{!e*:-e __start}}} \
- %{!static: \
- %{rdynamic:-export-dynamic} \
- %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
+ -nostdlib, -static, -rdynamic, and -dynamic-linker.
+
+ Target-specific code can use this in conjunction with any other
+ target-specific LINK_SPEC options.
+
+ Target-specific code must provide the %(netbsd_entry_point) spec. */
+
+#define NETBSD_LINK_SPEC_ELF \
+ "%{assert*} %{R*} %{rpath*} \
+ %{shared:-shared} \
+ %{!shared: \
+ -dc -dp \
+ %{!nostdlib: \
+ %{!r*: \
+ %{!e*:-e %(netbsd_entry_point)}}} \
+ %{!static: \
+ %{rdynamic:-export-dynamic} \
+ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"