[glibc/release/2.43/master] abilist.awk: Handle weak unversioned defined symbols
Sam James via Glibc-cvs <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e9517114acc77c0b8af9da6700107df16882b701 commit e9517114acc77c0b8af9da6700107df16882b701 Author: H.J. Lu <[email protected]> Date: Mon Apr 13 10:46:42 2026 +0800 abilist.awk: Handle weak unversioned defined symbols After commit f685e3953f9a38a41bbd0a597f9882870cee13d5 Author: H.J. Lu <[email protected]> Date: Wed Oct 29 09:49:57 2025 +0800 elf: Don't set its DT_VERSYM entry for unversioned symbol ld no longer assigns version index 1 to unversioned defined symbol. For libmachuser.so, "objdump --dynamic-syms" reports: 0000dd30 w DF .text 000000f8 processor_start instead of 0000dd30 w DF .text 000000f8 (Base) processor_start Also allow NF == 6 for weak unversioned dynamic symbols. This fixes BZ 33650. Signed-off-by: H.J. Lu <[email protected]> Reviewed-by: Sam James <[email protected]> (cherry picked from commit ee5d1db2a81468413fbf7c82779ffa782f429d1a) Diff: --- scripts/abilist.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/abilist.awk b/scripts/abilist.awk index 6cc7af6ac8..7ea1edf8c0 100644 --- a/scripts/abilist.awk +++ b/scripts/abilist.awk @@ -38,7 +38,7 @@ $4 == "*UND*" { next } $2 == "l" { next } # If the target uses ST_OTHER, it will be output before the symbol name. -$2 == "g" || $2 == "w" && (NF == 7 || NF == 8) { +$2 == "g" || $2 == "w" && (NF == 6 || NF == 7 || NF == 8) { type = $3; size = $5; sub(/^0*/, "", size);