bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-se


From: james410 at cowgill dot org.uk
Subject: [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix
Date: Fri, 25 Nov 2016 11:41:49 +0000

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

--- Comment #9 from James Cowgill <james410 at cowgill dot org.uk> ---
I added some debug code ontop of my patch and it seems that at the time the
dynamic symbol table indexes are allocated, all the symbols are GGA_NONE.

debug: _fdata, LOCAL, GGA_NONE
debug: _ftext, LOCAL, GGA_NONE
debug: __bss_start, LOCAL, GGA_NONE
debug: _edata, LOCAL, GGA_NONE
debug: _end, LOCAL, GGA_NONE
debug: _fbss, LOCAL, GGA_NONE
debug: psi, GLOBAL, GGA_NONE
debug: omega, GLOBAL, GGA_NONE

Even when --gc-sections is removed all the symbols are GGA_NONE (although they
are all now GLOBAL). Clearly at least psi and omega are external symbols.

If I adjust stubs.c a bit, it seems a symbol is only ever GGA_NORMAL if it
actually needs a GOT entry (eg if I call psi from omega, psi becomes GGA_NORMAL
but omega remains GGA_NONE).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]