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

            Bug ID: 22068
           Summary: --emit-relocs doesn't add relocations for
                    from_arm/from_thumb functions
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: sigmaepsilon92 at gmail dot com
  Target Milestone: ---

--emit-relocs doesn't seem to generate relocations for the __func_addr word
which follows generated ARM/Thumb glue functions.
This prevents successfully relocating statically linked excutables.

To reproduce, you can just compile a hello world like this:
arm-linux-gnueabi-gcc main.c -o /tmp/main -static -Wl,--emit-relocs

Using readelf you'll see that there are no relocations for the words following
*_from_thumb functions(e.g. __memset_from_thumb).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to