This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Last data page not being filled


> 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.

Doesn't it already do that?  The bss section should be right after the
data section, so they should share the last page.

Of course, you failed to tell us which target you're using, so maybe
your specific target is asking binutils to do otherwise.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]