From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C452B3858C53; Sun, 12 May 2024 07:29:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C452B3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715498976; bh=iWGM0wQZQOwbVtoWKTr3/HnIMu9oSKb8oQoew8gCf1U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VusY6tgm5mkSgc6ZRxzoVTseBw6iQlxGi3vJrhe7qSOs6S902awQPpVvLjLxYUKza 4DKSlrkBTa14GFWWlXNkI8BqiCYD/xcGUEg4EVkIKSdngT0baKzdymIzFU6YBKjW2g ZbWioS5Q17Lc3+evez5IiN+GOWb2sAKO2fYN/Iw4= From: "dichen at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/31447] Provide a public debug section relocation function Date: Sun, 12 May 2024 07:29:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: dichen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dichen at redhat dot com 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31447 --- Comment #2 from Di Chen --- Hey @mjw ``` $ eu-readelf -a qq.o | grep Type Type: REL (Relocatable file) $ eu-readelf -S qq.o | grep REL [ 2] .rela.text RELA 0000000000000000 000004b8 00000048 2= 4 I=20 19 1 8 [ 6] .rela.debug_info RELA 0000000000000000 00000500 000000f0 2= 4 I=20 19 5 8 [ 9] .rela.debug_aranges RELA 0000000000000000 000005f0 00000030 2= 4 I=20 19 8 8 [11] .rela.debug_line RELA 0000000000000000 00000620 00000060 2= 4 I=20 19 10 8 [18] .rela.eh_frame RELA 0000000000000000 00000680 00000030 2= 4 I=20 19 17 8 ``` When applying relocation on a relocatable file (the above qq.o) with the new function dwelf_relocation_debug_sections (Elf *elf), it only needs to apply relocati= on on debug sections (which are=20 [ 6] .rela.debug_info,=20 [ 9] .rela.debug_aranges, [11] .rela.debug_line ), am I right? --=20 You are receiving this mail because: You are on the CC list for the bug.=