------- Comment #8 from jmbnyc at gmail dot com  2006-10-05 18:48 -------
Subject: Re:  bad relocation section name `' in .o causes segv of ld.

One last comment. From the below, I think it is clear that the
compiler is the problem. If I compile with -g then I get the problem,
however if I compile without -g then I don't get the problem. Perhaps
I am wrong, but it appears that -g is producing .o that gives ld a
problem.

[EMAIL PROTECTED] bugs]$ /usr/bin/g++ -ftemplate-depth-64
-Wno-ctor-dtor-privacy -Wreturn-type -D_GNU_SOURCE -fPIC -m64
-D_REENTRANT -D_GNU_SOURCE -D__USE_GNU -I. -I.. -o SPTest.o -c
SPTest.i
[EMAIL PROTECTED] bugs]$ g++ -g -L. -o SPTest.1 SPTest.o -lutil_gcc64
-lstdc++ -lrt -lpthread

[EMAIL PROTECTED] bugs]$ /usr/bin/g++ -g -ftemplate-depth-64
-Wno-ctor-dtor-privacy -Wreturn-type -D_GNU_SOURCE -fPIC -m64
-D_REENTRANT -D_GNU_SOURCE -D__USE_GNU -I. -I.. -o SPTest.o -c
SPTest.i
[EMAIL PROTECTED] bugs]$ g++ -g -L. -o SPTest.1 SPTest.o -lutil_gcc64
-lstdc++ -lrt -lpthread
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: SPTest.o: bad relocation section name `'
/usr/bin/ld: SPTest.o: bad relocation section name `'
/usr/bin/ld: SPTest.o: bad relocation section name `'


On 10/5/06, Jeffrey M. Birnbaum <[EMAIL PROTECTED]> wrote:
> Look, I am not trying to be a jerk, but this new filing has a test
> case associated with it (another thing that you asked for). In
> addition, I took your advice and filed the bug with binutils. However,
> I now believe that the problem is with gcc and not ld. You based your
> judgement on the segv coming from ld. If you look at the test and come
> to the same conclusion then I will not bother you again.
>
> This problem is causing me great pain. Every time I change code, I get
> this problem
> and thus I can't get anything accomplished.
>
> /JMB
>
> On 5 Oct 2006 18:19:30 -0000, pinskia at gcc dot gnu dot org
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > ------- Comment #3 from pinskia at gcc dot gnu dot org  2006-10-05 18:19 
> > -------
> > Didn't I already tell you to post this to binutils?
> >
> >
> > --
> >
> >
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29359
> >
> > ------- You are receiving this mail because: -------
> > You are on the CC list for the bug, or are watching someone who is.
> > You reported the bug, or are watching the reporter.
> >
>
>
> --
> /JMB
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29359

Reply via email to