This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: leading padding in ELF segment
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 29 Dec 2006 10:58:10 -0500
- Subject: Re: leading padding in ELF segment
- References: <457ECEB5.2060000@codesourcery.com>
On Tue, Dec 12, 2006 at 03:45:57PM +0000, Nathan Sidwell wrote:
> The first segment contains exactly the .text section. The 2nd segment
> starts immediately after that, so the .data section is some 0x15d8 bytes
> into it. The .text section's file offset is aligned to the .text section's
> alignment. The .data section's file offset is not so aligned. Although I
> can't find words in the ELF spec to suppose that a section's file offset
> should be aligned, Diab does seem to be behaving inconsistently here.
>
> Question: Is this a well formed ELF file? AFAICT it is.
I think Diab is behaving strangely, but not inconsistently, and I think
that the file is well formed.
--
Daniel Jacobowitz
CodeSourcery