From a9f14069470b6dcee89e77f3062ec368426f771d Mon Sep 17 00:00:00 2001 From: jchandra Date: Fri, 25 Jun 2010 05:07:42 +0000 Subject: [PATCH] Add an alignment of 8 for sections in the n32 ABI. The default alignment of of 4 causes _end to be word aligned, which will be returned by sbrk. malloc(3), when compiled for n32, expects sbrk to return an 8-byte aligned value. Approved by: rrs (mentor) --- gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh | 1 + gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh b/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh index 2dbfdea488d8..2e33346efd98 100755 --- a/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh +++ b/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh @@ -2,3 +2,4 @@ . ${srcdir}/emulparams/elf32btsmipn32.sh . ${srcdir}/emulparams/elf_fbsd.sh GENERATE_PIE_SCRIPT=yes +ALIGNMENT=8 diff --git a/gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh b/gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh index f946aaee6226..50242102329a 100755 --- a/gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh +++ b/gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh @@ -2,3 +2,4 @@ . ${srcdir}/emulparams/elf32ltsmipn32.sh . ${srcdir}/emulparams/elf_fbsd.sh GENERATE_PIE_SCRIPT=yes +ALIGNMENT=8