------- Additional Comments From focht at gmx dot net 2005-10-01 09:29 ------- Hello,
(In reply to comment #1) > > I seem to recall that the PE file format does not allow sections to > start at address 0 and that this causes problems for debug sections. > > Probably the simplest way to fix this problem is to amend the PE linker > script (ld/scripttempl/pe.sc) and add an explicit entry for the > .gnu_debuglink section. > > If this works, please could you submit a patch so that we can apply it > to the mainline sources. > > Cheers > Nick > Hi, i added the stuff to pe linker script "pe.sc" as recommended: --- binutils-2.16.1/ld/scripttempl/pe-orig.sc 2004-12-01 00:54:53.000000000 +0100 +++ binutils-2.16.1/ld/scripttempl/pe.sc 2005-09-30 22:39:21.843750000 +0200 @@ -270,5 +270,10 @@ { *(.debug_ranges) } + + .gnu_debuglink ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} : + { + *(.gnu_debuglink) + } } EOF ----------------- and rebuilt the whole thing. It didnt work. Same result: ------------- Sections: Idx Name Size VMA LMA File off Algn 0 .gnu_debuglink 00000018 00000000 00000000 00000268 2**2 CONTENTS, READONLY, DEBUGGING 1 .text 001f2528 00401000 00401000 00000600 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA .... I verified the change after rebuild: ld\i386pe.* --------------- snip ----- .... .debug_ranges BLOCK(__section_alignment__) (NOLOAD) : { *(.debug_ranges) } .gnu_debuglink BLOCK(__section_alignment__) (NOLOAD) : { *(.gnu_debuglink) } ------------------------------------ Seems it is not an easy fix... What can i do further? Regards -- http://sourceware.org/bugzilla/show_bug.cgi?id=1391 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils