I have been encountering the following problem for several weeks. I compile and
create few c++ shared libraries (can happen with just one, so it has nothing to
do with the number). I then attempt to link a program and I get the following
type of  segv during the link step:

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

It happens with both -O2 and -g compiled code (although it is a bit more
frequent with -g code). In addition, usually if it happens with -O2 code then
it
will work fine when I compiled with -g (or vice-versa). 

I will attach a test case with a README file that shows how to reproduce.


-- 
           Summary: bad relocation section name `' in .o causes segv of ld.
           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 build triplet: gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
  GCC host triplet: Redhat FC5: 2.6.17-1.2187_FC5
GCC target triplet: x86_64 GNU/Linux


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

Reply via email to