From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id hPhUDp3HYGqIPSUAWB0awg (envelope-from ) for ; Wed, 22 Jul 2026 09:37:33 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=etpg6tOe; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 21F4C1E09E; Wed, 22 Jul 2026 09:37:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D587D1E099 for ; Wed, 22 Jul 2026 09:37:31 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 515034BA2E2E for ; Wed, 22 Jul 2026 13:37:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 515034BA2E2E Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=etpg6tOe Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 46FCE4BA2E04 for ; Wed, 22 Jul 2026 13:37:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46FCE4BA2E04 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 46FCE4BA2E04 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784727424; cv=none; b=L+CxTulB1xyVlJLW6n+MhmMChoju2AdcQyTeMA1vrewMpV6P5mzFRwIVLtEg3sxI4Kw4JaB2UuILYzeKfmsywWfyvX83dCjQMc8MvaX+YsC6sbk941akXca0ejKq4VnH3qJIgJ0ZMrqswZ8wLfn+bXVqQQuSUn/h9RplKerqbtU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784727424; c=relaxed/simple; bh=MJGTZcJ0zwP1QY8QGBMOdwpPtueibXx4PXQmgyby8ho=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=KPDqeJDv8q01cRw5vi19wLr/y1GLGabzuZCYKCkKdNKbgCDCmCGzefRkFZxZow3xKNnI1/DqhH5PExuGdODe1H+XZg8WsWDQj/IdDhu9ylmv7c8VQ3GDs1RZtwwzq4g9airazhQhS+Xe32f/tj+iJbFCq1vWnNPtLlsSQ+l0+48= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=etpg6tOe reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46FCE4BA2E04 Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id mHZMwG2adJFmFmX8Bwc9f0; Wed, 22 Jul 2026 13:37:03 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id mX88wrRfpUsP9mX88wZHi2; Wed, 22 Jul 2026 13:37:00 +0000 X-Authority-Analysis: v=2.4 cv=UPvdHDfy c=1 sm=1 tr=0 ts=6a60c77f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=RAioF0-LDSMA:10 a=ItBw4LHWJt0A:10 a=20KFwNOVAAAA:8 a=HYSv1NwHhLE0zPiUrroA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Kh4fqZR1ORzLxDhWfiOAUO896Hn4+M7GpmTQD/glawU=; b=etpg6tOelMHDMYPMnDFjHGE6jb 4xkvpg36bmO2whvZLFgy5uYW38FA4TKKiAig9wWzs+q95VPO6R10/9ju3M4nzNcEMAuQ4igSiRvq0 FiunKwcWp9DCSXIGy8SFsIfl5; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:54120 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wmX88-000000009qJ-0SYa; Wed, 22 Jul 2026 07:37:00 -0600 From: Tom Tromey To: Florian Weimer Cc: Tom Tromey , Wilco Dijkstra , Yury Khrustalev , Muhammad Kamran , "gdb-patches@sourceware.org" , Andrew Burgess , Thiago Jung Bauermann , Adhemerval Zanella Netto , Carlos O'Donell Subject: Re: [PATCH v2 1/1] gdb: Preserve IFUNC marker when finding inferior functions In-Reply-To: (Florian Weimer's message of "Tue, 21 Jul 2026 21:45:12 +0200") References: <20260625152036.6149-1-muhammad.kamran@arm.com> <20260625152036.6149-2-muhammad.kamran@arm.com> <87se5cuv4k.fsf@tromey.com> X-Attribution: Tom Date: Wed, 22 Jul 2026 07:36:54 -0600 Message-ID: <87ldb3rvrd.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wmX88-000000009qJ-0SYa X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:54120 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfLZWZEmyPfVr/weN6SiB97+Yrx4SMT9sbKZfr3joHri9GI3QbE4V/fvgRb7XtO61gr4CN1U9kyeyaj2sZ0ONiFEXI/ZnNh0qEeU3+Ylc0T3QCPhLmcID P8YM+XVW25pCncnuaaiHHiZq9XSxwi0dhkYi4hf0S1Ts9uY3TulT5fTplJ9r1uUe6L5PoENVLp8k2WWIqjf0k2NodC0YVrXQ4w4= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> Florian Weimer writes: Florian> Does GDB ever free the copy of the literal? >> No. I think there's a bug open about this but it's never seemed >> important to fix. > This is perhaps the main reason for using malloc? The proper lifetime > of the literal is unclear, so it can never be deallocated, and using > malloc at least avoids wasting a full page? gdb has used malloc for this since well before I worked on gdb, like decades before. Probably the rationale has been lost. Anyway, yes, I think one reason this isn't fixed is that it's not clear when the memory ought to freed. Also AFAIK this has never been a real issue in practice. Tom