From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2138) id A594F3857C52; Tue, 9 Jan 2024 22:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A594F3857C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704838356; bh=PcEXCv6fGdpn+rQo29cqLcKXsqPN25GxRFu6GxIoPy4=; h=From:To:Subject:Date:From; b=qr6xHNNng4UUBO0qpruuKtYGlMH39IpqdjkGLR1nBtrM86jmfVZUFEP8W45B6utLH B+lN07svLaKWhLBi32GHofpvoSc/eLLsYl8j+/nUPbnYQsAdQV4f7qLL4gkiUnv7tN 5K0UNQ0/ekJ094Qze2whOrCkhQ6MoiOQt4SXG6+s= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andreas Schwab To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-7081] Fix spurious match in extract_symvers X-Act-Checkin: gcc X-Git-Author: Andreas Schwab X-Git-Refname: refs/heads/master X-Git-Oldrev: ae3003b20d3e3ab6e50a6d4f2173e10ad9025135 X-Git-Newrev: 6002a3cd39c984423c59255ac780efb8b668b73a Message-Id: <20240109221236.A594F3857C52@sourceware.org> Date: Tue, 9 Jan 2024 22:12:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:6002a3cd39c984423c59255ac780efb8b668b73a commit r14-7081-g6002a3cd39c984423c59255ac780efb8b668b73a Author: Andreas Schwab 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: --- libstdc++-v3/scripts/extract_symvers.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --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/ \[: [A-Fa-f0-9]*\] //' -e '/\.dynsym/,/^$/p;d' |\ + sed -e 's/ \[: [A-Fa-f0-9]*\] //' -e '/\.dynsym.*:$/,/^$/p;d' |\ sed -e 's/ \[: [0-9]*\] //' |\ grep -E -v ' (LOCAL|UND) ' |\ grep -E -v ' (_DYNAMIC|_GLOBAL_OFFSET_TABLE_|_PROCEDURE_LINKAGE_TABLE_|_edata|_end|_etext)$' |\