summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/uclibc-buildroot/files/0.9.26/uClibc-0.9.26-pie-option.patch')
-rw-r--r--sys-devel/uclibc-buildroot/files/0.9.26/uClibc-0.9.26-pie-option.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-devel/uclibc-buildroot/files/0.9.26/uClibc-0.9.26-pie-option.patch b/sys-devel/uclibc-buildroot/files/0.9.26/uClibc-0.9.26-pie-option.patch
new file mode 100644
index 000000000000..ff539bc0ffb4
--- /dev/null
+++ b/sys-devel/uclibc-buildroot/files/0.9.26/uClibc-0.9.26-pie-option.patch
@@ -0,0 +1,18 @@
+--- extra/Configs/Config.in.orig 2004-01-03 09:04:12.000000000 +0930
++++ extra/Configs/Config.in 2004-01-16 02:17:58.226162576 +0930
+@@ -180,13 +180,14 @@
+ config UCLIBC_PIE_SUPPORT
+ bool "Support ET_DYN in shared library loader"
+ select FORCE_SHAREABLE_TEXT_SEGMENTS
++ select UCLIBC_COMPLETELY_PIC
+ default n
+ help
+ If you answer Y here, the uClibc native shared library loader will
+ support ET_DYN/PIE executables.
+ It requires binutils-2.14.90.0.6 or later and the usage of the
+ -pie option.
+- More about ET_DYN/PIE binaries on <http://pageexec.virtualave.net/> .
++ More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/>.
+ WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
+ libraries have to be built with -fPIC or -fpic, and all assembler
+ functions must be written as position independent code (PIC).