Patch from H.J. Lu for alpha-linux port.
authorH.J. Lu <hjl@gnu.ai.mit.edu>
Tue, 2 Sep 1997 19:53:50 +0000 (19:53 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Sep 1997 19:53:50 +0000 (12:53 -0700)
* 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

gcc/ChangeLog
gcc/config/alpha/elf.h

index 1f7438def7f47b4d9c7415f78c5910efd9c2e28f..94b896223ae804ee45a6315836da94732ddd8f46 100644 (file)
@@ -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
index f433a686504fef28747d156bfbbdd8e8f5bcc118..63bf7fe7543bef241d5c8fac5584ee8dfa531552 100644 (file)
@@ -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"