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

            Bug ID: 19823
           Summary: gold doesn't consider copy reloc of protected symbols
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: rafael.espindola at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

Given

local:
        .global internal
        .internal internal
internal:
        .global hidden
        .hidden hidden
hidden:
        .global protected
        .protected protected
protected
        .global default
default:
        .quad local
        .quad internal
        .quad hidden
        .quad protected
        .quad default

and linking with

ld test.o -o test.so -shared

gold and bfd agree on every relocation, except for protected where bfd produces

000000000268  000100000001 R_X86_64_64       0000000000000250 protected + 0

and gold produces

0000000002a0  000000000008 R_X86_64_RELATIVE                    288

The issue is that protected symbols cat still show up in copy relocations and
in undefined plt entries.

-- 
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