https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90908

            Bug ID: 90908
           Summary: g++powerpc 8.3 crashes when linking a library
                    containing R_PPC_EMB_SDA21 relocation symbols
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daan at scherft dot nl
  Target Milestone: ---

At our project we need to link a 3rd party elf file for the powerpc with g++
8.3.0 (and corresponding linker). This elf file contains symbols that use the
R_PPC_EMB_SDA21 relocation type. Now the linker gives error message 
'relocation R_PPC_EMB_SDA21 cannot be used when making a shared object' and
then crashes with a bus-error and message 'double free or corruption (out)'
Although I am not entire sure how to fix the R_PPC_EMB_SDA21 problem and if
that is actually a correct error message, for sure the g++ linker should never
crash with 'double free or corruption (out)'. 
Reproduce with:
usr/bin/powerpc-linux-gnu-gcc path/to/elf_file_with_R_PPC_EMB_SDA21.elf 
Unfortunately I can't reproduce it without our 3rd party elf file, because I
don't know how to create a (test) library containing R_PPC_EMB_SDA21 relocation
symbols.
We use Debian Buster (on Intel), before on Debian Stretch with gcc 6.3.0 we
didn't had that problem.

Reply via email to