Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kernel .text and .rodata
> On Nov 6, 2014, at 4:20 AM, Masao Uebayashi <uebayasi%gmail.com@localhost> wrote:
>
> On Thu, Nov 6, 2014 at 4:44 PM, Matt Thomas <matt%3am-software.com@localhost> wrote:
>>> .rodata is set as XN, right?
>>
>> Since all of memory is usually direct-mapped these days, the 16MB
>> supersection that holds the kernel text doesn't have XN even though
>> it's RW.
>
> o all memory is direct-mapped as RW w/ XN (no executable)
> o .text (including .rodata) is mapped as RW w/o XN (executable)
>
> ? I hope you meant .text is RO...
What I wrote is not a mistake.
Since data shares the same supersegment as .text, it has to be rw.
Home |
Main Index |
Thread Index |
Old Index