This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm-wince-pe-size reports empty .text
- From: Ian Lance Taylor <ian at airs dot com>
- To: Shaun Jackman <sjackman at pathwayconnect dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 22 Jul 2003 12:26:03 -0700
- Subject: Re: arm-wince-pe-size reports empty .text
- References: <1058901775.3066.22.camel@bluesteel.pathway>
Shaun Jackman <sjackman@pathwayconnect.com> writes:
> What's gone wrong here? objdump won't disassemble the object file. size
> reports the .text section as having zero length. However, objdump -h
> reports the .text section as having non-zero length. There's definitely
> code in the object file.
>
> Thanks,
> Shaun
>
>
>
> $ arm-wince-pe-objdump -d foo.o
>
> foo.o: file format pe-arm-little
>
> $ arm-wince-pe-size foo.o
> text data bss dec hex filename
> 0 772 404 1176 498 foo.o
> $ arm-wince-pe-objdump -h foo.o
>
> foo.o: file format pe-arm-little
>
> Sections:
> Idx Name Size VMA LMA File off Algn
> 0 .text 00000d94 00000000 00000000 00000104 2**2
> CONTENTS, RELOC
The .text section is not marked LOAD or ALLOC, so size correctly
reports that it does not take up any space, and objdump -d ignores it
(objdump -D would work).
Why the .text section is not marked LOAD or ALLOC, I do not know.
Ian