Message ID | 87plyauqmd.fsf@igel.home |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp427274dyi; Tue, 9 Jan 2024 13:47:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfmDjQnSsNpqRea04iNWLbOrwnEKxr8VxWZu8OPcs3QD9YfBV5eKrjtRIR3RZLgt17I9qs X-Received: by 2002:a25:e0ce:0:b0:dbd:c343:27cb with SMTP id x197-20020a25e0ce000000b00dbdc34327cbmr56128ybg.10.1704836857753; Tue, 09 Jan 2024 13:47:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704836857; cv=pass; d=google.com; s=arc-20160816; b=BlvNlztm4lidDnRZYL3G+7uQ/gSXQ0ig0z9Go1ovKjpAJZv3zhW3X67fy0nhmZMKyc HIRBsnZRqQuBFXwgvOR1qCY7SQCgiRXhKb5QN+aHLZjJouEW0Noo1O0FRWoCAlY7fWus ujucw9fOc3KnS6WnI8aOY8k9u9xNKNfNOOqZqW5rqo4pT0tvm1dhRATtzDC1p0mO2/iI 05kl16ZFMPy+ONyupehmGNPqVHZzVjuee1/VnqP0GtCujkeI8PLa7DnCZ0fy4D9Cx3PI wzooUWO8aSgSQeSfSYjGAFC6dWNv3b6RM/jVq5YT079zOJdzPnAew4gRIR4DWxf3+oKr WK2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:cc:subject:to:from:arc-filter:dmarc-filter :delivered-to; bh=PxpIn64GNuOQHxELWTLw5fnnCOlT+HRrcqZNohET00c=; fh=UrdYlTzUwg5zJdbMGxjOjjPvk89JPr7T1HpleLlFklE=; b=jqx3u2iu7945cnZl/qIpWue1Mmro03f5S+YxCzjKndjq92xZcWcbpn3GkdFaBOMOwt M3gq9p2RKytfEaQ3uoniWieZue8TaoomfAtR8/vsnUVvz1RbgjZteo9HIs173vAUpEtA ZmLkwf2wbL6CAb7U2xuUe2A7BnQXBy+ZWMMdHe5DKekMyl4OvzVrN1Die1tzDwJ5pS2C BCqozv0SbgcgUMpVL4giP3jyRfh5OFEpsDEEmrpV5W3OHXo+S7yaCQzBS16+rfFyx1ZM E8epXJ0OI6maqQpr7c2A2gnI/HerP+TAl3rSMVhYX4cs7eo6RXw87IuL5VBl4fXNyISo gLzQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f6-20020ac85d06000000b00429975fb2ebsi3171998qtx.506.2024.01.09.13.47.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 13:47:37 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74DD83858C66 for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 21:47:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 99C453858407; Tue, 9 Jan 2024 21:46:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99C453858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 99C453858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.18.0.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704836800; cv=none; b=oMnFb9Td0AatsEE9IhNMlBGQF882QcFvSkdLfwdGercMi/k6iib+fh3LWqdwYj5lqp1o66UaI2UmmAAwUfg7dXDSaG5PFioUn+rf4TkyPyxMp9OUzRiEWpIINvEWl7rsC2x2fiOy03OB0jsdx+LDZTGuBky1rAPAivCywwN0t7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704836800; c=relaxed/simple; bh=iZl64ft2h8LKnlWs5u1bkG2lWNaiLrvb4E5KUD7uoZc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=vIMofRJNcAiP6YsatiJlHfaL+Xi4UA69ALFcG1zIehyGItljPPs5r4yvMAdr8e8IDtgyD1BrrGLZStIakozcZXBL8UN0rzjJYNvzka7EZoAIjqbdCL8GcyFsQdVQCFTdGEYONyAaMke4Hm58k1G9jszOdNoSOFnIqyO1+WIhAzM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4T8kz14DgLz1qsPG; Tue, 9 Jan 2024 22:46:37 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4T8kz11r8Xz1qqlS; Tue, 9 Jan 2024 22:46:37 +0100 (CET) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id wsUqTvOIkvZm; Tue, 9 Jan 2024 22:46:36 +0100 (CET) X-Auth-Info: soIxX1dV3bqnke2FoP7klcesV2sa6IwZ4+rYcojBCY6Q/Rhy4QkyzRKAdD7OtGR6 Received: from igel.home (aftr-62-216-202-128.dynamic.mnet-online.de [62.216.202.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 9 Jan 2024 22:46:36 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 3722A2C12B5; Tue, 9 Jan 2024 22:46:34 +0100 (CET) From: Andreas Schwab <schwab@linux-m68k.org> To: libstdc++@gcc.gnu.org Subject: [PATCH] Fix spurious match in extract_symvers CC: gcc-patches@gcc.gnu.org X-Yow: It's today's SPECIAL! Date: Tue, 09 Jan 2024 22:46:34 +0100 Message-ID: <87plyauqmd.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787651012993165049 X-GMAIL-MSGID: 1787651012993165049 |
Series |
Fix spurious match in extract_symvers
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Andreas Schwab
Jan. 9, 2024, 9:46 p.m. UTC
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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 9 Jan 2024 at 21:47, Andreas Schwab wrote: > > 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. OK, thanks. > > 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 | 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/ \[<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)$' |\ > -- > 2.43.0 > > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different." >
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/ \[<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)$' |\