]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix spurious match in extract_symvers
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 4 Jan 2024 09:53:04 +0000 (10:53 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 9 Jan 2024 22:11:42 +0000 (23:11 +0100)
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.

libstdc++-v3/scripts/extract_symvers.in

index 17f0d31bd1c9f16d51cb976dc6ccfd4f938e0ac7..6bb951c71452a5b7279a823927c4ab46937218ca 100755 (executable)
@@ -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)$' |\