diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-11-29 06:40:09 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-11-29 06:40:09 +0000 |
commit | 30151e3525326f123feec03d52cb20e7fd25e4c3 (patch) | |
tree | 8011003b3cf97d6f4fcf9e8f77be8ec08c20f7e1 | |
parent | 34ffbcc7e5f6068357c9e4ed8e08f0df72fcd7c1 (diff) | |
download | FreeBSD-src-30151e3525326f123feec03d52cb20e7fd25e4c3.zip FreeBSD-src-30151e3525326f123feec03d52cb20e7fd25e4c3.tar.gz |
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
-rw-r--r-- | sys/conf/ldscript.powerpc64 | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |