bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/24697] New: ld powerpc 2.31.1 crashes when linking a library con


From: daan at scherft dot nl
Subject: [Bug ld/24697] New: ld powerpc 2.31.1 crashes when linking a library containing R_PPC_EMB_SDA21 relocation symbols
Date: Tue, 18 Jun 2019 11:43:07 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24697

            Bug ID: 24697
           Summary: ld powerpc 2.31.1 crashes when linking a library
                    containing R_PPC_EMB_SDA21 relocation symbols
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: daan at scherft dot nl
  Target Milestone: ---

At our project we need to link a 3rd party elf file for the powerpc gnu linker
(ld 2.31.1). 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 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 and
corresponding linker we didn't had that problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]