From 30151e3525326f123feec03d52cb20e7fd25e4c3 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Sun, 29 Nov 2015 06:40:09 +0000 Subject: [PATCH] Fix build with new binutils. This gets a working kernel with GCC 5.2 and binutils 2.24. Without this, the self-relocation code in locore64.S was failing due to a misaligned TOC section. MFC after: 2 weeks --- sys/conf/ldscript.powerpc64 | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/conf/ldscript.powerpc64 b/sys/conf/ldscript.powerpc64 index dba745538be7..18349a51feac 100644 --- a/sys/conf/ldscript.powerpc64 +++ b/sys/conf/ldscript.powerpc64 @@ -69,6 +69,7 @@ SECTIONS .toc1 : ALIGN(8) { *(.toc1) } .opd : ALIGN(8) { KEEP (*(.opd)) } .branch_lt : ALIGN(8) { *(.branch_lt) } + . = ALIGN(4096); .got : ALIGN(8) { __tocbase = .; *(.got .toc) } .dynamic : { *(.dynamic) }