[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.
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, (continued)
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, amodra at gmail dot com, 2016/11/17
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, pochu27 at gmail dot com, 2016/11/18
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, james410 at cowgill dot org.uk, 2016/11/18
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, mh-sourceware at glandium dot org, 2016/11/20
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, amodra at gmail dot com, 2016/11/20
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, amodra at gmail dot com, 2016/11/20
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, pochu27 at gmail dot com, 2016/11/24
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, address@hidden, 2016/11/24
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, james410 at cowgill dot org.uk, 2016/11/24
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, address@hidden, 2016/11/24
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix,
james410 at cowgill dot org.uk <=
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, james410 at cowgill dot org.uk, 2016/11/25
- [Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix, address@hidden, 2016/11/29