[PATCH ld] ARM FreeBSD increase TEXT_START_ADDR

Andreas Tobler andreast-list@fgznet.ch
Wed Aug 20 19:49:00 GMT 2014


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



More information about the Binutils mailing list