* A linux/alpha patch
@ 1997-08-29 21:09 H.J. Lu
0 siblings, 0 replies; 7+ messages in thread
From: H.J. Lu @ 1997-08-29 21:09 UTC (permalink / raw)
To: egcs
Hi,
There are no crtbeginS.o nor crtendS.o on linux/alpha/elf.
Thanks.
H.J.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Fri Aug 29 15:19:17 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.
Index: gcc/config/alpha/elf.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 elf.h
--- elf.h 1997/08/29 00:28:57 1.1.1.2
+++ elf.h 1997/08/29 22:19:13
@@ -36,7 +36,7 @@
#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 @@
#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 @@
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
- "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
+ "crtend.o%s crtn.o%s"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a linux/alpha patch
1997-09-19 19:46 ` Jeffrey A Law
@ 1997-09-19 19:54 ` H.J. Lu
0 siblings, 0 replies; 7+ messages in thread
From: H.J. Lu @ 1997-09-19 19:54 UTC (permalink / raw)
To: law; +Cc: egcs
>
>
> In message < m0xCFU6-0004ecC@ocean.lucon.org >you write:
> > > If that's the case, then shouldn't all the other linux configurations
> > > have HANDLE_SYSV_PRAGMA defined? I only see it arm/linux. Or better
> >
> > Yes, it is the case.
> OK. Can you send me a patch to fix this problem for the other linux
> configs? I'll go ahead and install the patch into the alpha linux.h.
>
Other Linuxes are fine. Somehow they have defined HANDLE_SYSV_PRAGMA.
For linux/x86 and linux/m68k, they include the generic linux.h which
includes the generic svr4.h where HANDLE_SYSV_PRAGMA is defined. For
others, we have to make sure HANDLE_SYSV_PRAGMA is defined somehow.
From what I can see, they, except linux/alpha, are ok.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a linux/alpha patch
1997-09-19 19:42 ` H.J. Lu
@ 1997-09-19 19:46 ` Jeffrey A Law
1997-09-19 19:54 ` H.J. Lu
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey A Law @ 1997-09-19 19:46 UTC (permalink / raw)
To: H.J. Lu; +Cc: egcs
In message < m0xCFU6-0004ecC@ocean.lucon.org >you write:
> > If that's the case, then shouldn't all the other linux configurations
> > have HANDLE_SYSV_PRAGMA defined? I only see it arm/linux. Or better
>
> Yes, it is the case.
OK. Can you send me a patch to fix this problem for the other linux
configs? I'll go ahead and install the patch into the alpha linux.h.
Jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a linux/alpha patch
1997-09-19 18:12 ` Jeffrey A Law
@ 1997-09-19 19:42 ` H.J. Lu
1997-09-19 19:46 ` Jeffrey A Law
0 siblings, 1 reply; 7+ messages in thread
From: H.J. Lu @ 1997-09-19 19:42 UTC (permalink / raw)
To: law; +Cc: egcs
>
>
> In message < m0xBl2v-0004ecC@ocean.lucon.org >you write:
> > The Linux compiler should take
> >
> > #pragma xxxxxxxxxx
> >
> > I added it to linux/alpha.
> If that's the case, then shouldn't all the other linux configurations
> have HANDLE_SYSV_PRAGMA defined? I only see it arm/linux. Or better
Yes, it is the case.
> yet, don't we have a generic linux.h where we could put this kind
Yes, there is a generic linux.h. But the files in the config subdir
are so messed up that linux/alpha and linux/sparc cannot use the
generic linux.h. BTW, you haven't seen the linux/mips patch yet.
> of thing?
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a linux/alpha patch
1997-09-18 11:11 a " H.J. Lu
@ 1997-09-19 18:12 ` Jeffrey A Law
1997-09-19 19:42 ` H.J. Lu
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey A Law @ 1997-09-19 18:12 UTC (permalink / raw)
To: H.J. Lu; +Cc: egcs
In message < m0xBl2v-0004ecC@ocean.lucon.org >you write:
> The Linux compiler should take
>
> #pragma xxxxxxxxxx
>
> I added it to linux/alpha.
If that's the case, then shouldn't all the other linux configurations
have HANDLE_SYSV_PRAGMA defined? I only see it arm/linux. Or better
yet, don't we have a generic linux.h where we could put this kind
of thing?
jeff
^ permalink raw reply [flat|nested] 7+ messages in thread
* a linux/alpha patch
@ 1997-09-18 11:11 H.J. Lu
1997-09-19 18:12 ` Jeffrey A Law
0 siblings, 1 reply; 7+ messages in thread
From: H.J. Lu @ 1997-09-18 11:11 UTC (permalink / raw)
To: egcs
The Linux compiler should take
#pragma xxxxxxxxxx
I added it to linux/alpha.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Thu Sep 18 08:07:09 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* config/alpha/linux.h (HANDLE_SYSV_PRAGMA): Defined.
Index: config/alpha/linux.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/linux.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 linux.h
--- linux.h 1997/08/26 00:20:43 1.1.1.1
+++ linux.h 1997/09/17 19:00:00
@@ -65,6 +65,9 @@
/* Show that we need a GP when profiling. */
#define TARGET_PROFILING_NEEDS_GP
+/* We need that too. */
+#define HANDLE_SYSV_PRAGMA
+
#undef ASM_FINAL_SPEC
/* Emit RTL insns to initialize the variable parts of a trampoline.
^ permalink raw reply [flat|nested] 7+ messages in thread
* A linux/alpha patch
@ 1997-08-29 15:45 H.J. Lu
0 siblings, 0 replies; 7+ messages in thread
From: H.J. Lu @ 1997-08-29 15:45 UTC (permalink / raw)
To: egcs
Here is a small patch.
Thanks.
H.J.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
--
Tue Aug 29 16:15:11 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* config/alpha/xm-linux.h (HAVE_STRERROR,
DONT_DECLARE_SYS_SIGLIST, USE_BFD): Undef before define.
Index: gcc/config/alpha/xm-linux.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/xm-linux.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 xm-linux.h
--- xm-linux.h 1997/08/26 00:20:43 1.1.1.1
+++ xm-linux.h 1997/08/29 16:06:26
@@ -1,3 +1,8 @@
+#undef HAVE_STRERROR
#define HAVE_STRERROR
+
+#undef DONT_DECLARE_SYS_SIGLIST
#define DONT_DECLARE_SYS_SIGLIST
+
+#undef USE_BFD
#define USE_BFD
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1997-09-19 19:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-29 21:09 A linux/alpha patch H.J. Lu
-- strict thread matches above, loose matches on Subject: below --
1997-09-18 11:11 a " H.J. Lu
1997-09-19 18:12 ` Jeffrey A Law
1997-09-19 19:42 ` H.J. Lu
1997-09-19 19:46 ` Jeffrey A Law
1997-09-19 19:54 ` H.J. Lu
1997-08-29 15:45 A " H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).