diff options
author | Jason Thorpe <thorpej@wasabisystems.com> | 2002-06-08 06:38:02 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@gcc.gnu.org> | 2002-06-08 06:38:02 +0000 |
commit | a3e944f9a050733b71b294f4df37b98e5d9e59cc (patch) | |
tree | 8073d40905cbe94ac055e07f3996f92def6145d3 /gcc/config/i386/netbsd64.h | |
parent | 854928a0397c41f1ccf75455ecda4e8d6f7df0d1 (diff) | |
download | gcc-a3e944f9a050733b71b294f4df37b98e5d9e59cc.zip gcc-a3e944f9a050733b71b294f4df37b98e5d9e59cc.tar.gz gcc-a3e944f9a050733b71b294f4df37b98e5d9e59cc.tar.bz2 |
netbsd-elf.h (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
* config/i386/netbsd-elf.h (LINK_SPEC): Define as
NETBSD_LINK_SPEC_ELF.
(SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
(NETBSD_ENTRY_POINT): Define.
* config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
(SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
netbsd_entry_point.
(NETBSD_ENTRY_POINT): Define.
From-SVN: r54362
Diffstat (limited to 'gcc/config/i386/netbsd64.h')
-rw-r--r-- | gcc/config/i386/netbsd64.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/gcc/config/i386/netbsd64.h b/gcc/config/i386/netbsd64.h index bd0c607..89050bc 100644 --- a/gcc/config/i386/netbsd64.h +++ b/gcc/config/i386/netbsd64.h @@ -29,29 +29,26 @@ Boston, MA 02111-1307, USA. */ } \ while (0) -/* Provide a LINK_SPEC appropriate for a NetBSD/x86-64 ELF target. - This is a copy of LINK_SPEC from <netbsd-elf.h> tweaked for - the x86-64 target. */ -#undef LINK_SPEC -#define LINK_SPEC \ - "%{!m32:-m elf_x86_64} \ - %{m32:-m elf_i386} \ - %{assert*} %{R*} \ - %{shared:-shared} \ - %{!shared: \ - -dc -dp \ - %{!nostdlib: \ - %{!r*: \ - %{!e*:-e _start}}} \ - %{!static: \ - %{rdynamic:-export-dynamic} \ - %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \ - %{static:-static}}" +/* Extra specs needed for NetBSD/x86-64 ELF. */ #undef 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/x86-64 ELF target. */ + +#undef LINK_SPEC +#define LINK_SPEC \ + "%{m32:-m elf_i386} \ + %{m64:-m elf_x86_64} \ + %(netbsd_link_spec)" + +#define NETBSD_ENTRY_POINT "_start" + /* Provide a CPP_SPEC appropriate for NetBSD. */ |