From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56BD03857C42; Tue, 5 Dec 2023 22:07:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56BD03857C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701814041; bh=e+x+Vtw1dsFp4WcwYIJBsMc3AwzBYahyQZPmrJwQ4wE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TzgDrUvw3qQVYZzHIeaZIEim9/VYLyaUfI4AgJi/ya4EjgViCC74pH9D16CLK+3yL QDlhdhgEny5MAclxm/qdgSCDht+hWPqHt3zuOiVBxsck8jmpzRrDhinKF+2UbVdlIG TbbBX6BDaLGuBv85rQ0x6EGP0fvNXPCg9BRsvGTA= From: "ibhagat at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/112849] btf: wrong BTF_KIND_DATSEC entries for extern variables without known section Date: Tue, 05 Dec 2023 22:07:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: btf-debug, wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: ibhagat at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112849 --- Comment #2 from Indu Bhagat --- I think its also a good idea to propose a patch to btf.rst upstream to clea= rly state something to the like of: - What variables have an associated BTF_KIND_DATASEC entry=20 - In "2.2.15 BTF_KIND_DATASEC" "struct btf_type" encoding requirement: * "name_off": offset to a valid name associated with a variable or one of .data/.bss/.rodata --> change to --> * "name_off": offset to a valid section name associated with a variable= =20 or one of .data/.bss/.rodata=