tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: AMAP_SHARED (was Re: XIP)
On Tue, Nov 02, 2010 at 02:08:13PM +0100, Joerg Sonnenberger wrote:
> On Tue, Nov 02, 2010 at 01:35:10PM +0900, Masao Uebayashi wrote:
> > If a small program has both .data and .bss, and if .data is small,
> > I'd use .rodata and copy it to .bss explicitly, so that resulting
> > process allocates only .bss anon instead .data + .bss.
>
> Why don't you do the reverse and drop .bss explicitly by linker scripts?
Never thought of that. I just like read-only concept.
ISTR that some Linux XIP optimized filesystem supports compression
of .data. That'd be good, but it's not on my TODO list.
>
> Joerg
--
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
Home |
Main Index |
Thread Index |
Old Index