This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Padding between .text and .data
- From: Shaun Jackman <sjackman at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 14 Feb 2006 17:17:33 -0700
- Subject: Padding between .text and .data
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
In the linker script, armelf.xc, -- and likely other elf targets --
this line places 256 bytes of padding between the output .text and
.data sections.
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(256) + (. & (256 - 1));
Why is this padding necessary?
Please cc me in your reply. Thanks,
Shaun