This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Problem with gdb relocation of debug info


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


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