Thread (17 messages) flat view 17 messages, 5 authors, 2017-06-07

Re: [PATCH v2 5/9] powerpc/vmlinux.lds: Align __init_begin to 16M

From: Nicholas Piggin <npiggin@gmail.com>
Date: 2017-06-05 06:52:09

On Mon, 5 Jun 2017 08:42:40 +1000
Balbir Singh [off-list ref] wrote:
On Sun, Jun 4, 2017 at 2:22 PM, Nicholas Piggin [off-list ref] wrote:
quoted
On Sat,  3 Jun 2017 17:18:39 +1000
Balbir Singh [off-list ref] wrote:
 
quoted
For CONFIG_STRICT_KERNEL_RWX align __init_begin to 16M.
We use 16M since its the larger of 2M on radix and 16M
on hash for our linear mapping. The plan is to have
.text, .rodata and everything upto __init_begin marked
as RX. Note we still have executable read only data.
We could further align read only data to another 16M
boundary, but then the linker starts using stubs and
that breaks our assembler code in head_64.S  
Is this still the case with powerpc next?
 
Sorry, no, I was on linux-next for testing, but I think your linker
stub patches went in very recently. I'll rebase on top and test,
That would be good. I'd like to make sure the linker stub workaround
does work for your case.
but I am not sure if I want two 16M alignments and bloat the size
of vmlinux. But I'll double check what happens
Maybe it could be an option.

Thanks,
Nick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help