This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
objdump -d -r doesn't always show reloc symbol
- From: Richard Kennedy <richard at rsk dot demon dot co dot uk>
- To: binutils at sourceware dot org
- Date: Sun, 05 Oct 2008 13:25:01 +0100
- Subject: objdump -d -r doesn't always show reloc symbol
Hi,
I've been seeing an issue on linux x86_64 when running objdump -d -r on
some kernel modules.
Occasionally some of the relocated symbols don't get resolved.
e.g
objdump -d -r sound/drivers/snd-dummy.ko
most of it is as expected, except this :-
Disassembly of section .exit.text:
0000000000000000 <cleanup_module>:
0: e9 00 00 00 00 jmpq 5 <snd_card_dummy_pcm_pointer+0x5>
1: R_X86_64_PC32 .text+0x4e
but I expected to see
1: R_X86_64_PC32 snd_dummy_unregister_all-0x04
cleanup_module is a alias for alsa_card_dummy_exit() which just calls
snd_dummy_unregister_all
which is here
0000000000000052 <snd_dummy_unregister_all>:
Does anyone have any insight as to what is going wrong ?
I'm running GNU objdump version 2.18.50.0.6-5.fc9 20080403
on fedora 9 x86_64.
regards
Richard