bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28697] New: objdump doesn't look for separate debug styles


From: travis.downs at gmail dot com
Subject: [Bug binutils/28697] New: objdump doesn't look for separate debug styles using "build-id" style
Date: Wed, 15 Dec 2021 00:58:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28697

            Bug ID: 28697
           Summary: objdump doesn't look for separate debug styles using
                    "build-id" style
           Product: binutils
           Version: 2.37
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: travis.downs at gmail dot com
  Target Milestone: ---

Created attachment 13856
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13856&action=edit
uses the debuglink and build-id styles to build and strip a binary

Support for the "build ID" style of separate debug lookup was added in 2017:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2425a30e406a0523020b7e70abb864a06a45bb97

However, it seems to be used only for a few flags like -S, but it is ignored
for others, like --syms. 

Using strace, one can see that for --syms it is only looks for the old style
"debuglink" debug info. It never looks in the `.build-id` based paths even when
the note is present.

Find below a test program which shows the issue, based on strace output, chmod
+x it and run.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]