https://sourceware.org/bugzilla/show_bug.cgi?id=19823
Rafael Ávila de Espíndola <rafael.espindola at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|gold doesn't consider copy |gold produces copy reloc of
|reloc of protected symbols |protected symbols
--- Comment #3 from Rafael Ávila de Espíndola <rafael.espindola at gmail dot
com> ---
$ cat test.s
.global _start
_start:
.long foo
$ cat lib.s
.data
.global foo
.protected foo
.type foo, @object
.size foo, 4
foo:
.long 0
$ gcc -c lib.s test.s
$ ld.gold lib.o -shared -o lib.so
$ ld.gold test.o lib.so -o t
$ readelf -r t
Relocation section '.rela.dyn' at offset 0x230 contains 1 entries:
Offset Info Type Sym. Value Sym. Name +
Addend
000000401350 000100000005 R_X86_64_COPY 0000000000401350 foo + 0
[espindola@localhost llvm]$ readelf -sW lib.so | grep foo
1: 0000000000001290 4 OBJECT GLOBAL PROTECTED 6 foo
2: 0000000000001290 4 OBJECT GLOBAL PROTECTED 6 foo
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils