------- 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 <pri...@plt-0x10>: 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 <pri...@plt>: 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 <pri...@plt-0x10> 0000000000000290 <f...@plt>: 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 <pri...@plt-0x10> 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 <f...@plt> 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 <pri...@plt> 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils