Patch from H.J. Lu for alpha-linux port.
* config/alpha/elf.h (CPP_PREDEFINES): Add -D__PIC__ -D__pic__. (STARTFILE_SPEC): Always use crtbegin.o%s (ENDFILE_SPEC): Always use crtend.o%s. From-SVN: r15036
This commit is contained in:
parent
a6a503ed40
commit
290c8b1fb1
@ -1,3 +1,9 @@
|
||||
Tue Sep 2 12:48:11 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
|
||||
|
||||
* config/alpha/elf.h (CPP_PREDEFINES): Add -D__PIC__ -D__pic__.
|
||||
(STARTFILE_SPEC): Always use crtbegin.o%s
|
||||
(ENDFILE_SPEC): Always use crtend.o%s.
|
||||
|
||||
Tue Sep 2 12:00:36 1997 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* alpha/alpha.h (PREFERRED_RELOAD_CLASS): Return NO_REGS if NO_REGS
|
||||
|
@ -36,7 +36,7 @@ Currently only Linux uses this. */
|
||||
#undef CPP_PREDEFINES
|
||||
#define CPP_PREDEFINES "\
|
||||
-D__alpha -D__alpha__ -D__linux__ -D__linux -D_LONGLONG -Dlinux -Dunix \
|
||||
-Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__"
|
||||
-Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__ -D__PIC__ -D__pic__"
|
||||
|
||||
#undef LINK_SPEC
|
||||
#ifdef USE_GNULIBC_1
|
||||
@ -498,7 +498,7 @@ do { \
|
||||
#define STARTFILE_SPEC \
|
||||
"%{!shared: \
|
||||
%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
|
||||
crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
|
||||
crti.o%s crtbegin.o%s"
|
||||
|
||||
/* Provide a ENDFILE_SPEC appropriate for Linux. Here we tack on
|
||||
the Linux magical crtend.o file (see crtstuff.c) which
|
||||
@ -508,4 +508,4 @@ do { \
|
||||
|
||||
#undef ENDFILE_SPEC
|
||||
#define ENDFILE_SPEC \
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
"crtend.o%s crtn.o%s"
|
||||
|
Loading…
Reference in New Issue
Block a user