This is the mail archive of the 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]

[Question] stripped lib and it's line numbers


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 ?

For example, I use is stripped but objdump -l show it's filename:line numbers.

  $ file /lib/x86_64-linux-gnu/
/lib/x86_64-linux-gnu/ ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/, BuildID[sha1]=369de0e1d833caa693af17f17c83ba937f0a4dad, for GNU/Linux 2.6.32, stripped

$ objdump -dlS /lib/x86_64-linux-gnu/ --start-address=0x7bf50 --stop-address=0x7c240

/lib/x86_64-linux-gnu/     file format elf64-x86-64

Disassembly of section .text:

000000000007bf50 <_IO_adjust_column@@GLIBC_2.2.5+0x40>:
   7bf50:	41 57                	push   %r15
   7bf52:	41 56                	push   %r14
   7bf54:	41 89 fe             	mov    %edi,%r14d
   7bf57:	41 55                	push   %r13
   7bf59:	41 54                	push   %r12
   7bf5b:	55                   	push   %rbp
   7bf5c:	53                   	push   %rbx
   7bf5d:	48 83 ec 28          	sub    $0x28,%rsp
   7bf61:	85 ff                	test   %edi,%edi


No such file /build/glibc-GKVZIf/glibc-2.23/libio/genops.c.
But I found the above line numbers are correct at glibc-2.23 tag
of git://

How can objdump show line numbers for ?


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