Any MIPS experts?
Maciej W. Rozycki
macro@linux-mips.org
Fri Sep 23 19:40:00 GMT 2005
On Fri, 23 Sep 2005, Dave Korn wrote:
> What binutils and gcc versions did you use for that? And can we compare
They are 2.16.1 and 4.0.1, respectively. The version of GCC used
shouldn't really matter, though.
> the output from "mipsel-linux-objdump -x main" with the kind of thing we
> were seeing at e.g.
Here's mine:
LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
filesz 0x000009a4 memsz 0x000009a4 flags r-x
LOAD off 0x000009a4 vaddr 0x004409a4 paddr 0x004409a4 align 2**16
filesz 0x000000a8 memsz 0x000000bc flags rw-
> I'm not familiar with PHDRS, but I /think/ that these lines:
>
> LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
> filesz 0x00000ac0 memsz 0x00000ac0 flags r-x
> LOAD off 0x00010000 vaddr 0x10000000 paddr 0x10000000 align 2**16
> filesz 0x00000090 memsz 0x000000a0 flags rw-
>
> indicate that the second LOAD section has been aligned in the output file
> according to its load-time alignment. The filesz field shows that there's
> hardly any data in each, but the off field shows that the data segment is at
> 64kB in the file, doesn't it?
You are right.
Maciej
More information about the Binutils
mailing list