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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to