diff options
author | Jason Thorpe <thorpej@wasabisystems.com> | 2002-06-08 06:07:11 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@gcc.gnu.org> | 2002-06-08 06:07:11 +0000 |
commit | 6bb5d2e7c0baa5d05fb96e0e4f8be80dcb03572e (patch) | |
tree | 4b3850a4c360f13c5f99551447512b3694c17371 | |
parent | e50126e8585814786271a772cb5a1704e3881f6b (diff) | |
download | gcc-6bb5d2e7c0baa5d05fb96e0e4f8be80dcb03572e.zip gcc-6bb5d2e7c0baa5d05fb96e0e4f8be80dcb03572e.tar.gz gcc-6bb5d2e7c0baa5d05fb96e0e4f8be80dcb03572e.tar.bz2 |
netbsd-elf.h (LINK_SPEC): Rename to...
* config/netbsd-elf.h (LINK_SPEC): Rename to...
(NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
to specify program entry point.
From-SVN: r54360
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/netbsd-elf.h | 32 |
2 files changed, 24 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb8e9df..7cafa39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-06-08 Jason Thorpe <thorpej@wasabisystems.com> + + * config/netbsd-elf.h (LINK_SPEC): Rename to... + (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point) + to specify program entry point. + 2002-06-07 Jeff Law <law@redhat.com * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx. diff --git a/gcc/config/netbsd-elf.h b/gcc/config/netbsd-elf.h index 6e69e80fa..40ed3aa 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}}" |