This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Q: debugging linker scripts
On Thu, 2009-11-19 at 12:40 +1030, Alan Modra wrote:
> On Thu, Nov 19, 2009 at 12:37:42PM +1030, Alan Modra wrote:
> > On Wed, Nov 18, 2009 at 10:13:37PM +0100, Danny Backx wrote:
> > > The mapfile says :
> > > .debug_info 0x00017000 0x1600
> > > *(.debug_info)
> > > .debug_info 0x00017000
> > > 0x282 /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/crt3.o
> > > .debug_info 0x00017282 0x1e7 /home/danny/tmp/ccWxQHuj.o
> > > [..]
> > >
> > > Where do I look for the cause of this problem ?
> >
> > What does "readelf -S crt3.o" say for .debuginfo? Perhaps the section
> > flags or type is bad.
>
> Oops, readelf won't work for you. objdump -h instead.
pavilion: {671} arm-mingw32ce-objdump
-h /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/crt3.o
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/crt3.o: file format pe-arm-wince-little
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000000a4 00000000 00000000 000001a4 2**2
CONTENTS, ALLOC, LOAD, RELOC, CODE
1 .data 00000000 00000000 00000000 00000000 2**2
ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000000 2**2
ALLOC
3 .debug_abbrev 000000d8 00000000 00000000 00000248 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_info 00000282 00000000 00000000 00000320 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
5 .debug_line 00000149 00000000 00000000 000005a2 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
6 .debug_frame 0000006c 00000000 00000000 000006eb 2**2
CONTENTS, RELOC, READONLY, DEBUGGING
7 .debug_loc 00000081 00000000 00000000 00000757 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_pubnames 00000028 00000000 00000000 000007d8 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
9 .debug_aranges 00000020 00000000 00000000 00000800 2**0
CONTENTS, RELOC, READONLY, DEBUGGING
pavilion: {672}
A more elaborate output (objdump -xs) is at
http://danny.backx.info/download/cegcc/crt3.objdump
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info