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

Re: linker problem


Hi Eric,

> Can I ask a question related to this: we were using a flag -d debug,
> for assembler to generated COFF32 debug info for onjects.. is there
> any other flag for "cl" Intel 64 assembler installed on windows 32
> bit machine, that we can use to generate ELF debug info sections for
> object.?

Sorry - I am unfamiliar with this assembler.
 
> If there is no options for generate debug info in ELF.... As I
> didn't work on any linkerscript.. is there any way I can play insied
> the linkerscripts so I can low level change debug info sections
> ----> from COFF32 to ELF... ensure there is no overlap?

At the moment there is no (GNU) tool for converting COFF32 debug
information (which is probably STABS) into ELF debug information
(DWARF2).  What you might be able to do however, is to remove the
ALLOC or LOAD flags from the STABS debug section, so that it will no
longer be considered to be overlapping the hash section.

Try something like this:

 objcopy --set-section=flags <section>=noload <input_file> <output_file>

Where <section> is the name of the section containing the COFF32 debug
information.  (You can use the "objdump -h" command to display the
sections in a file).

Cheers
        Nick


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