Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2009 13:08:15 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198203 - in head/sys: sparc64/include sun4v/include
Message-ID:  <200910181308.n9ID8FCP069572@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun Oct 18 13:08:15 2009
New Revision: 198203
URL: http://svn.freebsd.org/changeset/base/198203

Log:
  Change the load base to below 2GB so PIE binaries work including when
  compiled to use the Medium/Low code model, which we currently default
  to for the userland. GNU/Linux has moved their default to Medium/Middle
  some time ago, which probably explains why the current GNU ld(1) uses
  a base in the range between 32 and 44 bits instead.
  
  Submitted by:	kib

Modified:
  head/sys/sparc64/include/elf.h
  head/sys/sun4v/include/elf.h

Modified: head/sys/sparc64/include/elf.h
==============================================================================
--- head/sys/sparc64/include/elf.h	Sun Oct 18 12:57:48 2009	(r198202)
+++ head/sys/sparc64/include/elf.h	Sun Oct 18 13:08:15 2009	(r198203)
@@ -97,6 +97,6 @@ __ElfType(Auxinfo);
 #define	ELF_TARG_MACH	ELF_ARCH
 #define	ELF_TARG_VER	1
 
-#define	ET_DYN_LOAD_ADDR 0x150000000
+#define	ET_DYN_LOAD_ADDR 0x100000
 
 #endif /* !_MACHINE_ELF_H_ */

Modified: head/sys/sun4v/include/elf.h
==============================================================================
--- head/sys/sun4v/include/elf.h	Sun Oct 18 12:57:48 2009	(r198202)
+++ head/sys/sun4v/include/elf.h	Sun Oct 18 13:08:15 2009	(r198203)
@@ -97,6 +97,6 @@ __ElfType(Auxinfo);
 #define	ELF_TARG_MACH	ELF_ARCH
 #define	ELF_TARG_VER	1
 
-#define	ET_DYN_LOAD_ADDR 0x150000000
+#define	ET_DYN_LOAD_ADDR 0x100000
 
 #endif /* !_MACHINE_ELF_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910181308.n9ID8FCP069572>