From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 874D83858421; Mon, 16 Jan 2023 13:39:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 874D83858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673876377; bh=WDstwEBWPCs8Oy5W7G6BKxlPb2FyVVJoBc4saDurixU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PbrxWdcKiq+7lQYKJQn5m1lIsyuAVtluxR47Cmqu3NUA7S/wGKHmYc3wmkJF7thFD x6Mksf9eN/MgOa0qIVUL92JlLV+3uyK3IkD5UXVxyffUJ+Vucd0bYqkHdVTqVeziD9 c265C83hSE4E1d6sViz7RJedsK3ycvl46tX2Xcoo= From: "dichen at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug tools/28873] Implement eu-readelf -D Date: Mon, 16 Jan 2023 13:39:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dichen at redhat dot com X-Bugzilla-Status: ASSIGNED 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=3D28873 --- Comment #6 from Di Chen --- [Follow the last comment] For a binary with SYMTAB STRTAB having different order, like upside down, or having other section in between. eg. ``` $ readelf -Dd /usr/local/go/bin/go Dynamic section at offset 0x9e5220 contains 19 entries: Tag Type Name/Value 0x0000000000000004 (HASH) 0xb3c3c0 0x0000000000000006 (SYMTAB) 0xb3c880 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000005 (STRTAB) 0xb3c660 0x000000000000000a (STRSZ) 531 (bytes) 0x0000000000000007 (RELA) 0xb3bfd8 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000003 (PLTGOT) 0xde5100 0x0000000000000015 (DEBUG) 0x0 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000006ffffffe (VERNEED) 0xb3c360 0x000000006fffffff (VERNEEDNUM) 2 0x000000006ffffff0 (VERSYM) 0xb3c300 0x0000000000000014 (PLTREL) RELA 0x0000000000000002 (PLTRELSZ) 768 (bytes) 0x0000000000000017 (JMPREL) 0xb3bff0 0x0000000000000000 (NULL) 0x0 ``` It will mess up the syments (symbol table entry number) calculation. --=20 You are receiving this mail because: You are on the CC list for the bug.=