diff options
author | jchandra <jchandra@FreeBSD.org> | 2010-06-25 05:07:42 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2010-06-25 05:07:42 +0000 |
commit | a9f14069470b6dcee89e77f3062ec368426f771d (patch) | |
tree | e3d9b6cb304e4dbf945dfef914814ec689c09aa0 /gnu | |
parent | d732cd62e43cbd7d2ffaeb846db691627be6e035 (diff) | |
download | FreeBSD-src-a9f14069470b6dcee89e77f3062ec368426f771d.zip FreeBSD-src-a9f14069470b6dcee89e77f3062ec368426f771d.tar.gz |
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)
Diffstat (limited to 'gnu')
-rwxr-xr-x | gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh | 1 | ||||
-rwxr-xr-x | gnu/usr.bin/binutils/ld/elf32ltsmipn32_fbsd.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh b/gnu/usr.bin/binutils/ld/elf32btsmipn32_fbsd.sh index 2dbfdea..2e33346 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 f946aae..5024210 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 |