I am trying to link some code and I get the following from the link step:

collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: build/x86-64.linux/gcc64/cc-O2/clientTest.o: bad relocation
section name `'

I can make this happen with either -O2 or -g compiled code. If I comment out
one line of code then the problem goes away. It is not possible for me to
provide a simple example because it happens at link time. I updated my system
last night (this was a fresh build for a new computer) and thus I have the
latest binutils.

It does seem that the asm step is generating the bad relo name so I imagine
that is where the problem is.

If you have any suggestions on who I can produce an example then let knom. I
could tar up the object files and libraries so that one could observe the
linker blowing up. Happy to do so, unless this is a known problem. Any other
advice on how to see where the problem might be would be helpful. At this
point, I do think it is a bug, but I have no way of knowing that for sure and
need to some help to figure it out.


-- 
           Summary: bad relocation section name
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jmbnyc at gmail dot com
  GCC host triplet: linux fc5 x86-64


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

Reply via email to