Work around binutils bugs in 2.23 and older

binutils versions up through at least 2.23 have some bugs that cause
STV_HIDDEN symbols to appear in .dynsyms.
This commit is contained in:
Roland McGrath 2014-03-18 07:44:00 +05:30 committed by Siddhesh Poyarekar
parent fdbe8eae2b
commit c8f8fa1504
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-03-18 Roland McGrath <roland@hack.frob.com>
* scripts/abilist.awk: Ignore symbols marked with .hidden.
2014-03-18 Will Newton <will.newton@linaro.org> 2014-03-18 Will Newton <will.newton@linaro.org>
* sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove

View File

@ -48,6 +48,10 @@ $2 == "g" || $2 == "w" && (NF == 7 || NF == 8) {
symbol = $NF; symbol = $NF;
gsub(/[()]/, "", version); gsub(/[()]/, "", version);
# binutils versions up through at least 2.23 have some bugs that
# caused STV_HIDDEN symbols to appear in .dynsym, though that is useless.
if (NF > 7 && $7 == ".hidden") next;
if (version == "GLIBC_PRIVATE") next; if (version == "GLIBC_PRIVATE") next;
desc = ""; desc = "";