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]

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







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