Re: [PATCH] binfmt_elf.c allow .bss with no access (p---)

John Reiser
2004-04-13T17:32:44Z

>>>>>>LOAD 0x001000 0x00400000 0x00400000 0x00000 0x10000000 R 0x1000
>>
>>>It should really be p_flags 0 and binfmt_elf.c should be fixed if it doesn't
>>>handle that properly.
>>
>>This ALPHA quality patch against 2.6.3 adds another argument to do_brk()
>>which enables having a user ELF .bss with no-access (or read-only).

Here are refreshed patches (now BETA quality) against recent kernels:
http://www.bitwagon.com/elfdiet/elfdiet-2.6.5-mm5-1.patch.gz
http://www.bitwagon.com/elfdiet/elfdiet-2.6.5.patch.gz
(Patch mechanics: take 2.6.5, apply -mm5-1 [if desired], then apply
the corresponding elfdiet patch.)

A short introduction with links to past and future patches is:
http://www.bitwagon.com/elfdiet/elfdiet.html

--
John Reiser, jreiser@BitWagon.com