This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Any MIPS experts?
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: "'Thiemo Seufer'" <ths at networkno dot de>, binutils at sourceware dot org
- Date: Fri, 23 Sep 2005 17:38:48 +0100 (BST)
- Subject: RE: Any MIPS experts?
- References: <SERRANOD7TfSr0fVwcd0000022e@SERRANO.CAM.ARTIMI.COM>
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