[Skiboot] [PATCH] Align TOC to 256 bytes

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 14 15:25:40 AEST 2015


Anton sent a similar patch to Linus, here is his comment:

<<
Recent toolchains force the TOC to be 256 byte aligned. We need
to enforce this alignment in our linker script, otherwise pointers
to our TOC variables (...) could be incorrect.
>>

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

diff --git a/skiboot.lds.S b/skiboot.lds.S
index a54ff5f..d5e493a 100644
--- a/skiboot.lds.S
+++ b/skiboot.lds.S
@@ -82,7 +82,7 @@ SECTIONS
 		*(.opd)
 	}
   
-	. = ALIGN(0x10);
+	. = ALIGN(0x100);
 	.got : {
 		__toc_start = . + 0x8000;
 		*(.got)




More information about the Skiboot mailing list