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
On Tue, 2003-07-22 at 14:44, Ian Lance Taylor wrote:
> Shaun Jackman <sjackman@pathwayconnect.com> writes:
>
> > Can I force objdump to disassemble .text even though it's not marked as
> > LOAD or ALLOC?
>
> Yes. Use the -D or --disassemble-all option.
-D disassembles .rdata (even though it's meaningless), but it does not
disassemble .text. (see below)
> > Why isn't .text marked as LOAD or ALLOC? This is the case
> > for object compiled by both gas 2.11.2 and 2.14.
>
> I don't know. If you are simply using gas to assemble files generated
> by the compiler which have no asm statements, then this is clearly a
> bug.
The source file is just good old "Hello, world!". No magic, no inline
assembler. Is this a binutils bug?
Cheers,
Shaun
$ arm-wince-pe-objdump -D hello.o
hello.o: file format pe-arm-little
Disassembly of section .rdata:
00000000 <LC0>:
0: 6c6c6548 cfstr64vs mvdx6, [ip], -#288
4: 77202c6f strvc r2, [r0, -pc, ror #24]!
8: 646c726f strvsbt r7, [ip], -#623
c: 00000021 andeq r0, r0, r1, lsr #32