about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-12-18 18:11:17 -0800
committerH.J. Lu <hjl.tools@gmail.com>2017-12-18 18:11:47 -0800
commit1a49fc59e42513247eaeac3feac6b099157eea7c (patch)
tree04ea3fcbb397928a0252a2caf4ef41f9bb1f0970
parent664251859260d3cca6a477fb08c3b9f2b78a4fd9 (diff)
downloadglibc-1a49fc59e42513247eaeac3feac6b099157eea7c.tar.gz
glibc-1a49fc59e42513247eaeac3feac6b099157eea7c.tar.xz
glibc-1a49fc59e42513247eaeac3feac6b099157eea7c.zip
Add --enable-static-pie variants to x86_64, x32 and i686
Since the default GCC and binutils versions used by build-many-glibcs.py,
which are GCC 7 branch and binutils 2.29 branch, support static PIE on
x86_64, x32 and i686, this patch adds --enable-static-pie glibc variants
to x86_64, x32 and i686 to get some coverage for static PIE.

Tested with build-many-glibcs.py.

	* scripts/build-many-glibcs.py (Context.add_all_configs): Add
	--enable-static-pie variants to x86_64, x32 and i686.
-rw-r--r--ChangeLog5
-rwxr-xr-xscripts/build-many-glibcs.py9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f869a908a..5eac6f03d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* scripts/build-many-glibcs.py (Context.add_all_configs): Add
+	--enable-static-pie variants to x86_64, x32 and i686.
+
 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #22631]
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index dd4c70d572..b86d6c1387 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -369,6 +369,15 @@ class Context(object):
                                 {'arch': 'i686', 'ccopts': '-m32 -march=i686'}],
                         extra_glibcs=[{'variant': 'disable-multi-arch',
                                        'cfg': ['--disable-multi-arch']},
+                                      {'variant': 'static-pie',
+                                       'cfg': ['--enable-static-pie']},
+                                      {'variant': 'x32-static-pie',
+                                       'ccopts': '-mx32',
+                                       'cfg': ['--enable-static-pie']},
+                                      {'variant': 'static-pie',
+                                       'arch': 'i686',
+                                       'ccopts': '-m32 -march=i686',
+                                       'cfg': ['--enable-static-pie']},
                                       {'variant': 'disable-multi-arch',
                                        'arch': 'i686',
                                        'ccopts': '-m32 -march=i686',