[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ppc patch] shrink grubof build

From: Hollis Blanchard
Subject: Re: [ppc patch] shrink grubof build
Date: Tue, 14 Sep 2004 10:11:40 -0500

On Sep 14, 2004, at 9:57 AM, Alan Modra wrote:

On Tue, Sep 14, 2004 at 09:47:56AM -0500, Hollis Blanchard wrote:
grubof -S: 166131 bytes; objcopy -O binary: 146224 bytes
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg
  LOAD           0x010000 0x00200000 0x00200000 0x13d68 0x13d68 R E
  LOAD           0x023d68 0x00223d68 0x00223d68 0x001b0 0x08bd4 RW

From the above, I'd say the wasted space is the nearly 64k between the
end of elf headers and start of .text.  You have a section alignment of
64k for some reason..  If you changed .text to start at
0x10000+SIZEOF_HEADERS, you'd find the image packed into the file

However, objcopy -O binary will omit that space. So even in the case above, with the text segment offset 64K into the file, I would still expect objcopy to emit a file 0x13d68 + 0x001b0 bytes long (objcopy does not insert zeros for BSS).

That file would be 81688 bytes, but here we see objcopy emitting 146224 bytes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]