* static linking in 3.2 ?
@ 2002-08-10 6:27 Richard Zidlicky
2002-08-10 7:16 ` PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?) H. J. Lu
0 siblings, 1 reply; 6+ messages in thread
From: Richard Zidlicky @ 2002-08-10 6:27 UTC (permalink / raw)
To: gcc mailing list
Hi,
I found that I need this patch to enable static linking,
crtbeginT.o does not exist on m68k-linux-gcc. I wonder is
that something m68k specific?
Richard
--- gcc-3.2-cvs/gcc/config/linux.h.rz Sat Aug 10 15:18:47 2002
+++ gcc-3.2-cvs/gcc/config/linux.h Sat Aug 10 15:18:54 2002
@@ -59,7 +59,7 @@
%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
%{!p:%{profile:gcrt1.o%s} \
%{!profile:crt1.o%s}}}} \
- crti.o%s %{static:crtbeginT.o%s}\
+ crti.o%s %{static:crtbeginS.o%s}\
%{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
#endif
^ permalink raw reply [flat|nested] 6+ messages in thread
* PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?)
2002-08-10 6:27 static linking in 3.2 ? Richard Zidlicky
@ 2002-08-10 7:16 ` H. J. Lu
2002-08-10 17:00 ` Richard Zidlicky
2002-08-18 9:20 ` H. J. Lu
0 siblings, 2 replies; 6+ messages in thread
From: H. J. Lu @ 2002-08-10 7:16 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: gcc mailing list, gcc-patches
On Sat, Aug 10, 2002 at 03:05:19PM +0200, Richard Zidlicky wrote:
> Hi,
>
> I found that I need this patch to enable static linking,
> crtbeginT.o does not exist on m68k-linux-gcc. I wonder is
> that something m68k specific?
>
> Richard
>
It doesn't look right. Try this.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?)
2002-08-10 7:16 ` PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?) H. J. Lu
@ 2002-08-10 17:00 ` Richard Zidlicky
2002-08-10 17:46 ` H. J. Lu
2002-08-18 9:20 ` H. J. Lu
1 sibling, 1 reply; 6+ messages in thread
From: Richard Zidlicky @ 2002-08-10 17:00 UTC (permalink / raw)
To: H. J. Lu; +Cc: gcc mailing list, gcc-patches
On Sat, Aug 10, 2002 at 07:16:20AM -0700, H. J. Lu wrote:
> On Sat, Aug 10, 2002 at 03:05:19PM +0200, Richard Zidlicky wrote:
> > Hi,
> >
> > I found that I need this patch to enable static linking,
> > crtbeginT.o does not exist on m68k-linux-gcc. I wonder is
> > that something m68k specific?
> >
> > Richard
> >
>
> It doesn't look right. Try this.
thanks, I have already tested a similar patch that does
roughly the same to m68k-*linux*, will try your patch for
the next recompile.
Btw I have seen this error when testing gcc-3.2 with binutils
2.12.90.0.7 on top of glibc-2.1, is this expected?
BUG IN DYNAMIC LINKER ld.so: ../sysdeps/m68k/dl-machine.h: 326: elf_machine_lazy_rel: Assertion `((reloc->r_info) & 0xff) == 21' failed!
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?)
2002-08-10 17:00 ` Richard Zidlicky
@ 2002-08-10 17:46 ` H. J. Lu
0 siblings, 0 replies; 6+ messages in thread
From: H. J. Lu @ 2002-08-10 17:46 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: gcc mailing list, gcc-patches
On Sun, Aug 11, 2002 at 01:28:06AM +0200, Richard Zidlicky wrote:
>
> Btw I have seen this error when testing gcc-3.2 with binutils
> 2.12.90.0.7 on top of glibc-2.1, is this expected?
>
> BUG IN DYNAMIC LINKER ld.so: ../sysdeps/m68k/dl-machine.h: 326: elf_machine_lazy_rel: Assertion `((reloc->r_info) & 0xff) == 21' failed!
>
glibc 2.1 is way too old.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?)
2002-08-10 7:16 ` PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?) H. J. Lu
2002-08-10 17:00 ` Richard Zidlicky
@ 2002-08-18 9:20 ` H. J. Lu
2002-08-18 15:24 ` H. J. Lu
1 sibling, 1 reply; 6+ messages in thread
From: H. J. Lu @ 2002-08-18 9:20 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: gcc mailing list, gcc-patches
On Sat, Aug 10, 2002 at 07:16:20AM -0700, H. J. Lu wrote:
> On Sat, Aug 10, 2002 at 03:05:19PM +0200, Richard Zidlicky wrote:
> > Hi,
> >
> > I found that I need this patch to enable static linking,
> > crtbeginT.o does not exist on m68k-linux-gcc. I wonder is
> > that something m68k specific?
> >
> > Richard
> >
>
> It doesn't look right. Try this.
>
I haven't heard any objections from Linux people. I will check it in
in the next few hours.
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?)
2002-08-18 9:20 ` H. J. Lu
@ 2002-08-18 15:24 ` H. J. Lu
0 siblings, 0 replies; 6+ messages in thread
From: H. J. Lu @ 2002-08-18 15:24 UTC (permalink / raw)
To: Richard Zidlicky; +Cc: gcc mailing list, gcc-patches
On Sun, Aug 18, 2002 at 09:20:19AM -0700, H. J. Lu wrote:
> On Sat, Aug 10, 2002 at 07:16:20AM -0700, H. J. Lu wrote:
> > On Sat, Aug 10, 2002 at 03:05:19PM +0200, Richard Zidlicky wrote:
> > > Hi,
> > >
> > > I found that I need this patch to enable static linking,
> > > crtbeginT.o does not exist on m68k-linux-gcc. I wonder is
> > > that something m68k specific?
> > >
> > > Richard
> > >
> >
> > It doesn't look right. Try this.
> >
>
> I haven't heard any objections from Linux people. I will check it in
> in the next few hours.
>
I checked in the patch enclosed here. Tested on Linux/x86:
http://gcc.gnu.org/ml/gcc-testresults/2002-08/msg00589.html
H.J.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-08-18 15:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-10 6:27 static linking in 3.2 ? Richard Zidlicky
2002-08-10 7:16 ` PATCH: Set crt*.o for Linux (Re: static linking in 3.2 ?) H. J. Lu
2002-08-10 17:00 ` Richard Zidlicky
2002-08-10 17:46 ` H. J. Lu
2002-08-18 9:20 ` H. J. Lu
2002-08-18 15:24 ` 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).