diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-06-11 09:34:52 +0200 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-06-12 08:08:49 +0200 |
commit | c25d3905523ae4961bb039b1aba597983f7e3e4e (patch) | |
tree | 5508afcafae4342c83f3dc3d6da6f352813d3c68 /ShellPkg/DynamicCommand | |
parent | 051bf6e0af59741116a3f68bce7ed6d79fc801ab (diff) | |
download | edk2-c25d3905523ae4961bb039b1aba597983f7e3e4e.zip edk2-c25d3905523ae4961bb039b1aba597983f7e3e4e.tar.gz edk2-c25d3905523ae4961bb039b1aba597983f7e3e4e.tar.bz2 |
BaseTools/tools_def IA32: disable PIE code generation explicitly
As a security measure, some distros now build their GCC toolchains with
PIE code generation enabled by default, because it is a prerequisite
for ASLR to be enabled when running the executable.
This typically results in slightly larger code, but it also generates
ELF relocations that our tooling cannot deal with, so let's disable it
explicitly when using GCC49 or later for IA32. (Note that this does not
apply to X64: it uses PIE code deliberately in some cases, and our
tooling does deal with the resuling relocations)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'ShellPkg/DynamicCommand')
0 files changed, 0 insertions, 0 deletions