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

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?


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