This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Last data page not being filled
- From: Ian Lance Taylor <ian at airs dot com>
- To: "D. J. Bernstein" <djb at cr dot yp dot to>
- Cc: binutils at sources dot redhat dot com
- Date: 27 Jun 2003 06:51:10 -0700
- Subject: Re: Last data page not being filled
- References: <20030627070845.6759.qmail@cr.yp.to><20030627112726.14032.qmail@cr.yp.to>
"D. J. Bernstein" <djb@cr.yp.to> writes:
> When a program has (to take a real example) 220 bytes of initialized
> data and 444 bytes of zero-filled data, the GNU tools put the 220 bytes
> into the data segment and the 444 bytes into the bss segment, frittering
> away a page of memory per process. They should instead put all 664 bytes
> into the data segment.
GNU ld is supposed to already work as you describe. I just verified
that on i386 GNU/Linux it appears to work.
What is the target? Can you provide a simple test case?
Ian