From 30151e3525326f123feec03d52cb20e7fd25e4c3 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Sun, 29 Nov 2015 06:40:09 +0000 Subject: 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(+) (limited to 'sys') diff --git a/sys/conf/ldscript.powerpc64 b/sys/conf/ldscript.powerpc64 index dba7455..18349a5 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) } -- cgit v1.1