Skip to content
Snippets Groups Projects
Commit 6002a3cd authored by Andreas Schwab's avatar Andreas Schwab
Browse files

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.
parent ae3003b2
No related branches found
No related tags found
No related merge requests found
......@@ -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)$' |\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment