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
Shaun Jackman <sjackman@pathwayconnect.com> writes:
> -D disassembles .rdata (even though it's meaningless), but it does not
> disassemble .text. (see below)
Hmmm, you're right, -D doesn't disassemble sections which do not have
LOAD set. Maybe that's a bug. It doesn't seem to match the
documentation.
> > > 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?
Almost certainly yes.
Ian