bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/9784] Would like an option to provide a prefix for the deb


From: hjl dot tools at gmail dot com
Subject: [Bug binutils/9784] Would like an option to provide a prefix for the debug info source
Date: 25 Jan 2009 22:14:36 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2009-01-25 
22:14 -------
Here is the patch:

http://sourceware.org/ml/binutils/2009-01/msg00315.html

This patch supports relative prefix:

bash-3.2$ ./objdump -S --prefix=src --prefix-strip=6 libx.so

libx.so:     file format elf64-x86-64


Disassembly of section .plt:

0000000000000270 <address@hidden>:
 270:   ff 35 b2 01 20 00       pushq  0x2001b2(%rip)        # 200428
<_GLOBAL_OFFSET_TABLE_+0x8>
 276:   ff 25 b4 01 20 00       jmpq   *0x2001b4(%rip)        # 200430
<_GLOBAL_OFFSET_TABLE_+0x10>
 27c:   0f 1f 40 00             nopl   0x0(%rax)

0000000000000280 <address@hidden>:
 280:   ff 25 b2 01 20 00       jmpq   *0x2001b2(%rip)        # 200438
<_GLOBAL_OFFSET_TABLE_+0x18>
 286:   68 00 00 00 00          pushq  $0x0
 28b:   e9 e0 ff ff ff          jmpq   270 <address@hidden>

0000000000000290 <address@hidden>:
 290:   ff 25 aa 01 20 00       jmpq   *0x2001aa(%rip)        # 200440
<_GLOBAL_OFFSET_TABLE_+0x20>
 296:   68 01 00 00 00          pushq  $0x1
 29b:   e9 d0 ff ff ff          jmpq   270 <address@hidden>

Disassembly of section .text:

00000000000002a0 <foo>:
int
foo (int y)
{
 2a0:   55                      push   %rbp
 2a1:   48 89 e5                mov    %rsp,%rbp
 2a4:   89 7d fc                mov    %edi,-0x4(%rbp)
  return y;
 2a7:   8b 45 fc                mov    -0x4(%rbp),%eax
}
 2aa:   c9                      leaveq 
 2ab:   c3                      retq   

00000000000002ac <bar>:

int foo (void);

int
bar (void)
{
 2ac:   55                      push   %rbp
 2ad:   48 89 e5                mov    %rsp,%rbp
  printf ("%d\n", foo ());
 2b0:   e8 db ff ff ff          callq  290 <address@hidden>
 2b5:   89 c6                   mov    %eax,%esi
 2b7:   48 8d 3d 11 00 00 00    lea    0x11(%rip),%rdi        # 2cf <bar+0x23>
 2be:   b8 00 00 00 00          mov    $0x0,%eax
 2c3:   e8 b8 ff ff ff          callq  280 <address@hidden>
  return 0;
 2c8:   b8 00 00 00 00          mov    $0x0,%eax
}
 2cd:   c9                      leaveq 
 2ce:   c3                      retq   
bash-3.2$ 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Feature Request: would like |Would like an option to
                   |an option to provide a      |provide a prefix for the
                   |prefix for the debug info   |debug info source
                   |source                      |


http://sourceware.org/bugzilla/show_bug.cgi?id=9784

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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