This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: offseting DATA_ADDR
- From: Daniel Jacobowitz <drow at false dot org>
- To: Matt Thomas <matt at 3am-software dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 21 Sep 2009 14:21:40 -0400
- Subject: Re: offseting DATA_ADDR
- References: <B5C2FA93-7184-4C62-9385-9CBEDDEBEF4B@3am-software.com>
On Mon, Sep 21, 2009 at 11:12:22AM -0700, Matt Thomas wrote:
> Why isn't DATA_ADDR/SHLIB_DATA_ADDR defined by default to start on a
> segment boundary?
> Why is it defined to start at about the same offset as where text
> ends by default?
It may waste *address* space, but it saves *disk* space. Recent LD
has a threshold on how big a gap to allow; see COMMONPAGESIZE in the
manual.
--
Daniel Jacobowitz
CodeSourcery