This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Question about the differences between objdump and objcopy
On Mon, May 26, 2008 at 11:01:27AM +0800, XU SHENG wrote:
> Program Headers:
> Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
> LOAD 0x000000 0x08000000 0x08000000 0x00000 0x0815c RW 0x10000
> LOAD 0x010000 0xfe000000 0xfe000000 0x24000 0x24050 RWE 0x10000
> LOAD 0x040000 0xfe040000 0xfe040000 0x3ac000 0x3ac000 R 0x10000
> GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
>
> The Vir/Phy addr of all loadable segment are the same, but there is still many many pad bytes in binary output.
Well, you would expect some padding, wouldn't you? You must have gaps
between loaded sections to get these program headers. Please see
bfd/binary.c:binary_set_section_contents if you need more details.
--
Alan Modra
Australia Development Lab, IBM