Problem with gdb relocation of debug info

Daniel Jacobowitz drow@false.org
Tue Jun 20 13:41:00 GMT 2006


On Sat, Jun 17, 2006 at 02:43:24PM +0200, Mattias Bertilsson wrote:
> ld -o [exe] [intermediate] -T [lcf] -n --emit-relocs -e [crt0] --cref 
> --discard-none -M

This is the key.

As Andreas said, gdb is doing the right thing.  But you don't want it
to do that right thing.  You might want to prevent GDB from applying
relocations in ET_EXEC files - I presume this produces an ET_EXEC file.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list