This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: relocations when doing file command at gdb prompt


> So, are you loading an object file or a linked program? 
An object file.
> Does it have relocations included? 
Yes

I attach a dump (not with objdump) of the elf file and the elf file 
itself.
When doing
(gdb) file NewProgram.out
(gdb) info line 29
you should get an address twice the value it should have.

Thanks for the reply.


Attachment: elfdump.txt
Description: Text document

Attachment: NewProgram.out
Description: Binary data


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