From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GwGIM23MX2qylyEAWB0awg (envelope-from ) for ; Tue, 21 Jul 2026 15:45:49 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=EgV9H7As; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BF7F01E033; Tue, 21 Jul 2026 15:45:49 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 CB32B1E033 for ; Tue, 21 Jul 2026 15:45:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC5044BA2E16 for ; Tue, 21 Jul 2026 19:45:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC5044BA2E16 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=EgV9H7As Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 4F71B4BA2E05 for ; Tue, 21 Jul 2026 19:45:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F71B4BA2E05 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F71B4BA2E05 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784663125; cv=none; b=O8bNUKtd1z6I9iCvS2mHcfxYMzh0jbT5BSChDfXENLklyLFhzRKqusup4lgqnq1y2tL4ivINYEks7K0+UQEcPJ4TWVDtOWAEEQd8u9b/hyXk9TyQc2o+QAQRfqj/ypNNQlG5Y63/rqU/7oNUa6HTZbwyExC6rmri39D1vjmM7N4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784663125; c=relaxed/simple; bh=Z1aRdieFNL+n9zsqrsKKiCAKQkrZibt98Ex+pPWRYt0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=owj8lSC3HuKhm2DD9UCmKXXh8QfmYkBeKeQh47CzQyxoLkeArcGqJyEED61fSH+bM/dluz/m8xZYOccrqcn4dwbPKTeaUzFivcMz+QCdC3MP00nLDbVz+0+bVZfmkcRhNDODeNN6UDGA3UlN5PmGAWmHWGnfEcuSVL/Lj1C25U8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=EgV9H7As DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F71B4BA2E05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1784663124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yXddpe1ATScd0C0f8+UZtWHTfrNUx9ETMgbFSgma2oU=; b=EgV9H7AsF2bAF6U6UMz/Dq7b4IsKNtpuZeDZKMDF+TgDEe/TpHcPUT391RktqsBkQwP4iU DzRxl3gcMwFw53fPUs23d58NKIwqPhqF0Q6Awe+1s60ix3xQDdAQEglqIF5IbuBKSxIlys CnNENbKsr2gsIkWaYAbbtK91OBnTF7E= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609--OaEIiKROCmpzfecivkl4w-1; Tue, 21 Jul 2026 15:45:20 -0400 X-MC-Unique: -OaEIiKROCmpzfecivkl4w-1 X-Mimecast-MFC-AGG-ID: -OaEIiKROCmpzfecivkl4w_1784663119 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F0087180896E; Tue, 21 Jul 2026 19:45:18 +0000 (UTC) Received: from fweimer-oldenburg.csb.redhat.com (unknown [10.44.48.34]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 51B4A18002B1; Tue, 21 Jul 2026 19:45:14 +0000 (UTC) From: Florian Weimer To: Tom Tromey Cc: 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: <87se5cuv4k.fsf@tromey.com> (Tom Tromey's message of "Tue, 21 Jul 2026 11:10:03 -0600") References: <20260625152036.6149-1-muhammad.kamran@arm.com> <20260625152036.6149-2-muhammad.kamran@arm.com> <87se5cuv4k.fsf@tromey.com> Date: Tue, 21 Jul 2026 21:45:12 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: nPwVk4DbRZEeQ-UM8rynMlgMfgDmdYXsUbgRvy5KgYk_1784663119 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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 * Tom Tromey: >>>>>> "Florian" == 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? Thanks, Florian