svn commit: r340136 - head/sys/arm/include

Konstantin Belousov kib at FreeBSD.org
Sun Nov 4 19:11:34 UTC 2018


Author: kib
Date: Sun Nov  4 19:11:32 2018
New Revision: 340136
URL: https://svnweb.freebsd.org/changeset/base/340136

Log:
  Move the fixed base for PIE loading on arm.
  
  Existing base causes conflicts for direct execution of ld-elf.so.1
  because default linking base for non-PIE binaries is 0x10000.
  
  Reported and tested by:	Mark Millard <marklmi26-fbsd at yahoo.com>
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/arm/include/elf.h

Modified: head/sys/arm/include/elf.h
==============================================================================
--- head/sys/arm/include/elf.h	Sun Nov  4 19:10:44 2018	(r340135)
+++ head/sys/arm/include/elf.h	Sun Nov  4 19:11:32 2018	(r340136)
@@ -84,7 +84,7 @@ __ElfType(Auxinfo);
  */
 #define	MAGIC_TRAMP_NUMBER	0x5c000003
 
-#define	ET_DYN_LOAD_ADDR	0x12000
+#define	ET_DYN_LOAD_ADDR	0x500000
 
 /* Flags passed in AT_HWCAP. */
 #define	HWCAP_SWP		0x00000001	/* Unsupported, never set.    */


More information about the svn-src-head mailing list