This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Question] stripped lib and it's line numbers


Hi Jiong Wang

On 03/03/2017 01:34 AM, Jiong Wang wrote:
On 02/03/17 15:27, Taeung Song wrote:
Hi,

I have a question.
I believe objdump can't show line numbers for a stripped program.
But 'objdump -l' can do that in some cases ?


Hi Taeung,

  I think it's because objdump knows debug version library from
.note.gnu.build-id or gnu_debuglink section (for example under
/usr/lib/debug/lib/x86_64-linux-gnu/)

  see the following code in bfd/dwarf2.c

      debug_filename = bfd_follow_build_id_debuglink (abfd, DEBUGDIR);
      if (debug_filename == NULL)
        debug_filename = bfd_follow_gnu_debuglink (abfd, DEBUGDIR);



Thank you! I understood the reason.

Thanks,
Taeung


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]