* [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686
@ 2017-12-19 1:09 H.J. Lu
2017-12-19 2:05 ` Joseph Myers
2017-12-19 16:55 ` Joseph Myers
0 siblings, 2 replies; 4+ messages in thread
From: H.J. Lu @ 2017-12-19 1:09 UTC (permalink / raw)
To: GNU C Library
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.
OK for master?
H.J.
--
* scripts/build-many-glibcs.py (Context.add_all_configs): Add
--enable-static-pie variants to x86_64, x32 and i686.
---
scripts/build-many-glibcs.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 5453000df0..b317d598d1 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -368,6 +368,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',
--
2.14.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686
2017-12-19 1:09 [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686 H.J. Lu
@ 2017-12-19 2:05 ` Joseph Myers
2017-12-19 16:55 ` Joseph Myers
1 sibling, 0 replies; 4+ messages in thread
From: Joseph Myers @ 2017-12-19 2:05 UTC (permalink / raw)
To: H.J. Lu; +Cc: GNU C Library
On Mon, 18 Dec 2017, H.J. Lu wrote:
> 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.
>
> OK for master?
OK.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686
2017-12-19 1:09 [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686 H.J. Lu
2017-12-19 2:05 ` Joseph Myers
@ 2017-12-19 16:55 ` Joseph Myers
2017-12-19 16:58 ` H.J. Lu
1 sibling, 1 reply; 4+ messages in thread
From: Joseph Myers @ 2017-12-19 16:55 UTC (permalink / raw)
To: H.J. Lu; +Cc: GNU C Library
I see
FAIL: glibcs-x86_64-linux-gnu-static-pie check
with both GCC 6 and GCC 7, a linker error building elf/tst-prelink.
This is:
/scratch/jmyers/glibc-bot/install/compilers/x86_64-linux-gnu/lib/gcc/x86_64-glibc-linux-gnu/7.2.1/../../../../x86_64-glibc-linux-gnu/bin/ld: /scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-static-pie/glibc/elf/tst-prelink.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
(and the same with GCC 6).
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686
2017-12-19 16:55 ` Joseph Myers
@ 2017-12-19 16:58 ` H.J. Lu
0 siblings, 0 replies; 4+ messages in thread
From: H.J. Lu @ 2017-12-19 16:58 UTC (permalink / raw)
To: Joseph Myers; +Cc: GNU C Library
On Tue, Dec 19, 2017 at 8:55 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> I see
>
> FAIL: glibcs-x86_64-linux-gnu-static-pie check
>
> with both GCC 6 and GCC 7, a linker error building elf/tst-prelink.
>
> This is:
>
> /scratch/jmyers/glibc-bot/install/compilers/x86_64-linux-gnu/lib/gcc/x86_64-glibc-linux-gnu/7.2.1/../../../../x86_64-glibc-linux-gnu/bin/ld: /scratch/jmyers/glibc-bot/build/glibcs/x86_64-linux-gnu-static-pie/glibc/elf/tst-prelink.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
>
> (and the same with GCC 6).
This is:
https://sourceware.org/bugzilla/show_bug.cgi?id=22630
--
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-19 16:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-19 1:09 [PATCH] Add --enable-static-pie variants to x86_64, x32 and i686 H.J. Lu
2017-12-19 2:05 ` Joseph Myers
2017-12-19 16:55 ` Joseph Myers
2017-12-19 16:58 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).