This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH ld] ARM FreeBSD increase TEXT_START_ADDR
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 20 Aug 2014 21:49:13 +0200
- Subject: [PATCH ld] ARM FreeBSD increase TEXT_START_ADDR
- Authentication-results: sourceware.org; auth=none
Hi,
this patch is a follow up of the one which increases the TEXT_START_ADDR
for armelf_linux.sh.
The same is needed for armelf_freebsd.sh otherwise all executables fail
with: Exec format error. Binary file not executable.
Ok?
Thanks,
Andreas
2014-08-20 Andreas Tobler <andreast@fgznet.ch>
* emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
64kB boundary like in armelf_linux.sh.
diff --git a/ld/emulparams/armelf_fbsd.sh b/ld/emulparams/armelf_fbsd.sh
index 5b3ccc6..b2a3921 100644
--- a/ld/emulparams/armelf_fbsd.sh
+++ b/ld/emulparams/armelf_fbsd.sh
@@ -1,5 +1,8 @@
. ${srcdir}/emulparams/armelf.sh
. ${srcdir}/emulparams/elf_fbsd.sh
+
+TEXT_START_ADDR=0x00010000
+
TARGET2_TYPE=got-rel
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
GENERATE_PIE_SCRIPT=yes