This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A symble and absolute vaule problem in the objdump
- From: Andreas Schwab <schwab at suse dot de>
- To: Haizhi Xu <hxu02 at ecs dot syr dot edu>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 29 Oct 2002 23:36:52 +0100
- Subject: Re: A symble and absolute vaule problem in the objdump
- References: <1035927339.3dbeff2b6daf6@webmail.ecs.syr.edu>
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."