Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1515862
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: -fno-PIE, take #3 |
| Date | 2016-11-07 07:40 +0100 |
| Message-ID | <sALL3-7Kp-1@gated-at.bofh.it> (permalink) |
| References | <szRIR-5sV-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Nov 04, 2016 at 07:39:37PM +0100, Sebastian Andrzej Siewior wrote: > Debian gcc's is nowdays compiled with --enable-default-pie which means it does > -fPIE by default. This breaks atleast x86-64 compiles. > This is the third attempt to fix it, this time by using runtime detection of > the -fno-PIE compiler switch (it was introduced in gcc 3.4, min required gcc is > currently 3.2) so it can be backported to the stable kernels. > As noted by Al this won't fix `git bisect' of stable kernels prio this commit. > However using always a wrapper around gcc which adds -fno-PIE is not sollution > I want to rely in future. A wrapper around gcc which adds -fno-PIE doesn't work for the HOSTCC builds, anyway: % gcc -fno-PIE -o /tmp/hello /tmp/hello.c /usr/bin/ld: /tmp/cckzDf9X.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status Alas, the only workaround I've found which doesn't involve bisecting the kernel is to add "CC=gcc-5" to the Makefile invocation (assuming gcc-5 is installed of course). - Ted
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
-fno-PIE, take #3 Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
[PATCH 1/3] kbuild: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Michal Marek <mmarek@suse.com> - 2016-11-08 23:20 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Ingo Molnar <mingo@kernel.org> - 2016-11-09 07:20 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Michal Marek <mmarek@suse.com> - 2016-11-09 22:30 +0100
Re: [PATCH 1/3] kbuild: add -fno-PIE Ingo Molnar <mingo@kernel.org> - 2016-11-10 10:30 +0100
[PATCH 3/3] x86/kexec: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
[PATCH 2/3] scripts/has-stack-protector: add -fno-PIE Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-11-04 19:50 +0100
Re: -fno-PIE, take #3 Theodore Ts'o <tytso@mit.edu> - 2016-11-07 07:40 +0100
Re: -fno-PIE, take #3 "H. Peter Anvin" <hpa@zytor.com> - 2016-11-07 23:40 +0100
Re: -fno-PIE, take #3 Borislav Petkov <bp@alien8.de> - 2016-11-08 14:50 +0100
Re: -fno-PIE, take #3 Ben Hutchings <ben@decadent.org.uk> - 2016-11-09 00:00 +0100
csiph-web