[Buildroot] [PATCH v3] Remove -fPIC on x86_64
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jul 13 20:37:03 UTC 2012
Le Wed, 11 Jul 2012 14:57:18 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <arnout at mind.be> a écrit :
> The -fPIC breaks the purgatory of kexec (= the code that passes command-line
> arguments to the kernel): kexec doesn't know how to handle the GOT and PLT
> relocation entries.
>
> There is also no reason at all to pass -fPIC. Shared libraries that require
> it will add it to their local Makefiles, and normal executables have no
> business with -fPIC (plus it adds overhead...).
>
> The -fPIC was added by Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
> in commit 8027784c. That commit adds sysroot parameters to CFLAGS.
> There is no explanation why -fPIC is also added for x86_64.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Applied, thanks.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list