This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Relocation sections in an ELF executable?
- From: "Chris Smith" <cdsmith at twu dot net>
- To: <binutils at sources dot redhat dot com>
- Date: Sat, 11 Sep 2004 09:32:06 -0600
- Subject: Relocation sections in an ELF executable?
Good morning:
I need to be able to relocate pointer in an executable file from the runtime
loader -- the executable is not placed at a fixed location on the platform I'm
using. However, I can't tell seem to tell from the ELF executable which
variables are pointers and thus need to be relocated.
As far as I can tell, the exact information I need is stored in the .o files,
in a section called .rel.text. Is there an easy way to tell the linker to
emit relocation sections into the executable output file, so that its contents
can be used to fix up the binary in the runtime loader?
If not, then how would you do this?
Thanks,
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation