This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
load command supporting re-locatable binary
- From: "Fyles, Matthew" <matthew dot fyles at superh dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Thu, 3 Jul 2003 12:27:13 +0100
- Subject: load command supporting re-locatable binary
Is it possible in any way to load a file that has been compiled as
re-locatable and set the base address for the executable causing GDB to
load the first section at the base and all subsequent sections at the
correct offsets from the base.
The section command seems to rely on the user knowing base address for
all the sections and having to do the calculations themselves.
I would like to be able to do this without the debugger having any
information from the file command if that is possible.
Any ideas?