aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2024-01-04 10:53:04 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2024-01-09 23:11:42 +0100
commit6002a3cd39c984423c59255ac780efb8b668b73a (patch)
tree717ae2a0a3d0980c31f8cb0479cb632b1af3dc2b
parentae3003b20d3e3ab6e50a6d4f2173e10ad9025135 (diff)
downloadgcc-6002a3cd39c984423c59255ac780efb8b668b73a.zip
gcc-6002a3cd39c984423c59255ac780efb8b668b73a.tar.gz
gcc-6002a3cd39c984423c59255ac780efb8b668b73a.tar.bz2
Fix spurious match in extract_symvers
Tighten the regex to find the start of the .dynsym symtab in the readelf output to avoid matching the section symbol in the normal symtab. libstdc++-v3: * scripts/extract_symvers.in: Require final colon to only match .dsynsym in the header of the dynamic symtab.
-rwxr-xr-xlibstdc++-v3/scripts/extract_symvers.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/scripts/extract_symvers.in b/libstdc++-v3/scripts/extract_symvers.in
index 17f0d31..6bb951c 100755
--- a/libstdc++-v3/scripts/extract_symvers.in
+++ b/libstdc++-v3/scripts/extract_symvers.in
@@ -52,7 +52,7 @@ SunOS)
# Omit _DYNAMIC etc. for consistency with extract_symvers.pl, only
# present on Solaris.
${readelf} ${lib} |\
- sed -e 's/ \[<other>: [A-Fa-f0-9]*\] //' -e '/\.dynsym/,/^$/p;d' |\
+ sed -e 's/ \[<other>: [A-Fa-f0-9]*\] //' -e '/\.dynsym.*:$/,/^$/p;d' |\
sed -e 's/ \[<localentry>: [0-9]*\] //' |\
grep -E -v ' (LOCAL|UND) ' |\
grep -E -v ' (_DYNAMIC|_GLOBAL_OFFSET_TABLE_|_PROCEDURE_LINKAGE_TABLE_|_edata|_end|_etext)$' |\