[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/19823] gold produces copy reloc of protected symbols
From: |
maskray at google dot com |
Subject: |
[Bug gold/19823] gold produces copy reloc of protected symbols |
Date: |
Mon, 02 Sep 2019 03:03:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19823
Fangrui Song <maskray at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maskray at google dot com
--- Comment #10 from Fangrui Song <maskray at google dot com> ---
gold stills lacks some checks. A st_size=0 variant of Rafael's reproduce at #c3
% cat a.s
.long foo
% cat b.s
.global foo
.protected foo
.type foo, @object
#.size foo, 4 if st_size is 0
foo:
.long 0
% as a.s -o a.o
% as b.s -o b.o; gold -shared b.o -o b.so
% gold a.o b.so -pie
gold: error: a.o: requires dynamic R_X86_64_32 reloc against 'foo' which may
overflow at runtime; recompile with -fPIC
% gold a.o b.so # silent. it should error
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/19823] gold produces copy reloc of protected symbols,
maskray at google dot com <=