From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E4373858C56; Sun, 3 Mar 2024 12:19:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E4373858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709468350; bh=uS9ZKOOQLC1Hka8xNuaAI3UVFY0woOpYCt9x0qAaC1A=; h=From:To:Subject:Date:From; b=coN4DFLZmDnsW8pUglPHFsT/Gk0mHt5UbM22bQNnW/P2gSWZDGi2IIlMcVQHN78wN ovl7Lpqb0/VjMxzkBU16SsB+rQw7YbSpzvvNF5QxmD0j36iI8m5pmMJpw/7Xxf6x/t U0aT2HG9RQnM6z3WrtIuiQhEk9XJOTky3MeDiYp4= From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/31447] New: Provide a public debug section relocation function Date: Sun, 03 Mar 2024 12:19:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31447 Bug ID: 31447 Summary: Provide a public debug section relocation function Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libdw Assignee: unassigned at sourceware dot org Reporter: mark at klomp dot org CC: elfutils-devel at sourceware dot org Target Milestone: --- When opening an ET_REL file with dwarf_begin no relocations are resolved an= d no error checking is done if that is necessary. Causing some functions to prod= uce errors or wrong results (because an index is wrongly assumed to be zero). When opening such a file through libdwfl we do resolve all cross-debug-sect= ion relocations using __libdwfl_relocate. It would be good to make this a public function. Maybe through libdwelf dwelf_relocation_debug_sections (Elf *elf). So users can make sure ET_REL f= iles can be handled by libdw. And maybe add a check/flag in dwarf_begin so an error can be produced if a relocation value is needed for a correct result. --=20 You are receiving this mail because: You are on the CC list for the bug.=