This is the mail archive of the binutils@sources.redhat.com 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]

Re: A symble and absolute vaule problem in the objdump


Haizhi Xu <hxu02@ecs.syr.edu> writes:

|> Hi, friends:
|> I got a headache problem from objdump. I have an assembly file, which contain
|> the following code. Then I assembled it using gcc and get the .o object file.
|> When applying the objdump, the code turns out to be weired to me. The lable
|> address is changed to an absolute address and the function address is changed to
|> an absolute address too, which is the MIDDLE of the call instruction! I tried it
|> on gdb and got the same result.
|> My question is: From the output of the objdump, how can I identify the symbles
|> and how can I restore them?

Use "objdump -d -r" to get the disassembly annotated with relocations.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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