git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c32903
)
powerpc/vmlinux.lds: Ensure STRICT_ALIGN_SIZE is at least page aligned
author
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 16 Sep 2022 04:40:57 +0000
(14:40 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:16 +0000
(20:58 +1000)
Add a check that STRICT_ALIGN_SIZE is aligned to at least PAGE_SIZE.
That then makes the alignment to PAGE_SIZE immediately after the
alignment to STRICT_ALIGN_SIZE redundant, so remove it.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20220916131422.318752-1-mpe@ellerman.id.au
arch/powerpc/kernel/vmlinux.lds.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/vmlinux.lds.S
b/arch/powerpc/kernel/vmlinux.lds.S
index 0f2a10b029e8572db8f7f25da03148bd1bb1a766..dacf8b4302d91ae688aed2733f6b56e3fd360a20 100644
(file)
--- a/
arch/powerpc/kernel/vmlinux.lds.S
+++ b/
arch/powerpc/kernel/vmlinux.lds.S
@@
-32,6
+32,10
@@
#define STRICT_ALIGN_SIZE (1 << CONFIG_DATA_SHIFT)
+#if STRICT_ALIGN_SIZE < PAGE_SIZE
+#error "CONFIG_DATA_SHIFT must be >= PAGE_SHIFT"
+#endif
+
ENTRY(_stext)
PHDRS {
@@
-215,7
+219,6
@@
SECTIONS
*/
. = ALIGN(STRICT_ALIGN_SIZE);
__init_begin = .;
- . = ALIGN(PAGE_SIZE);
.init.text : AT(ADDR(.init.text) - LOAD_OFFSET) {
_sinittext = .;
INIT_TEXT