summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-02 19:53:50 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-02 19:53:50 +0000
commit1364ba4a910c8fdb56cf77c70829533ac1aa93f5 (patch)
treeed03a9b37005ecfaff7222a4a545a9db9a1f7d77 /gcc
parente21bed9e537f4196854ed83d1dc9393683638f77 (diff)
downloadgcc-1364ba4a910c8fdb56cf77c70829533ac1aa93f5.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/alpha/elf.h6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1f7438def7f..94b896223ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index f433a686504..63bf7fe7543 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -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"