public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-7081] Fix spurious match in extract_symvers
@ 2024-01-09 22:12 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2024-01-09 22:12 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:6002a3cd39c984423c59255ac780efb8b668b73a
commit r14-7081-g6002a3cd39c984423c59255ac780efb8b668b73a
Author: Andreas Schwab <schwab@linux-m68k.org>
Date: Thu Jan 4 10:53:04 2024 +0100
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.
Diff:
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/libstdc++-v3/scripts/extract_symvers.in b/libstdc++-v3/scripts/extract_symvers.in
index 17f0d31bd1c..6bb951c7145 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)$' |\
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-09 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 22:12 [gcc r14-7081] Fix spurious match in extract_symvers Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).