This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
arm-wince-pe-size reports empty .text
- From: Shaun Jackman <sjackman at pathwayconnect dot com>
- To: binutils at sources dot redhat dot com
- Date: 22 Jul 2003 13:22:55 -0600
- Subject: arm-wince-pe-size reports empty .text
- Organization: Pathway Connectivity
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
1 .data 00000000 00000000 00000000 00000000 2**2
2 .bss 00000194 00000000 00000000 00000000 2**2
ALLOC
3 .stab 00003048 00000000 00000000 00000e98 2**2
CONTENTS, RELOC, READONLY, DEBUGGING
4 .stabstr 00005e10 00000000 00000000 00003ee0 2**0
CONTENTS, READONLY, DEBUGGING
5 .rdata 00000304 00000000 00000000 00009cf0 2**2
CONTENTS, ALLOC, LOAD, DATA