Message ID | CAKv+Gu_QKpL2X3ZNn9QVZnBa00JrF1v0W1DtkyuGzm1cLREPWg@mail.gmail.com |
---|---|
State | New |
Headers | show |
(+ Laura, correct email this time) http://thread.gmane.org/gmane.linux.ports.arm.kernel/450513 On 23 October 2015 at 20:13, Jeremy Linton <jeremy.linton@arm.com> wrote: > On 10/23/2015 11:49 AM, Ard Biesheuvel wrote: >> >> On 23 October 2015 at 18:32, Jeremy Linton <jeremy.linton@arm.com> wrote: > > ... >>> >>> Maybe a clearer fix is an additional ifdef in the >>> DEBUG_ALIGN_RODATA >>> stanza which sets ALIGN_DEBUG_RO to align to pagesize if DEBUG_RODATA is >>> set, that way it only takes affect for RODATA. >> >> >> I think the diff does what you mean here. > > ... > > This solves the problem I have. But, my comment about was trying to be a > little more creative and allow it to align at less than page size if > DEBUG_RODATA isn't set, as it does today. Sort of a packed kernel if you > will... > OK, I didn't catch that. Not sure if the average waste of 32 KB is worth the trouble, though. Especially since, in my opinion, CONFIG_DEBUG_RODATA should be promoted to a non-debug 'default y' option. -- Ard. > But I will re-post shortly with just the ALIGN_DEBUG_RO change you suggest. > > Thanks, > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index e9b8276ca079..db834a464986 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -104,7 +104,7 @@ SECTIONS _text = .; HEAD_TEXT } - ALIGN_DEBUG_RO + ALIGN_DEBUG_RO_MIN(PAGE_SIZE) .text : { /* Real text segment */ _stext = .; /* Text and read-only data */ __exception_text_start = .;