mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
Config.in: add BR2_PIC_PIE_ARCH_SUPPORTS hidden option
The nios2 architecture is already excluded from PIC/PIE due to issues,
and we're going to also exclude Microblaze, so let's introduce a
BR2_PIC_PIE_ARCH_SUPPORTS hidden boolean to facilitate adding this new
architecture exclusion.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 70dd4bd156)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
d8a7cd188b
commit
0f725b8f6c
15
Config.in
15
Config.in
@@ -713,11 +713,16 @@ endmenu
|
|||||||
|
|
||||||
comment "Security Hardening Options"
|
comment "Security Hardening Options"
|
||||||
|
|
||||||
config BR2_PIC_PIE
|
config BR2_PIC_PIE_ARCH_SUPPORTS
|
||||||
bool "Build code with PIC/PIE"
|
bool
|
||||||
default y
|
default y
|
||||||
# Nios2 toolchains produce non working binaries with -fPIC
|
# Nios2 toolchains produce non working binaries with -fPIC
|
||||||
depends on !BR2_nios2
|
depends on !BR2_nios2
|
||||||
|
|
||||||
|
config BR2_PIC_PIE
|
||||||
|
bool "Build code with PIC/PIE"
|
||||||
|
default y
|
||||||
|
depends on BR2_PIC_PIE_ARCH_SUPPORTS
|
||||||
depends on BR2_SHARED_LIBS
|
depends on BR2_SHARED_LIBS
|
||||||
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
help
|
help
|
||||||
@@ -725,7 +730,7 @@ config BR2_PIC_PIE
|
|||||||
Position-Independent Executables (PIE).
|
Position-Independent Executables (PIE).
|
||||||
|
|
||||||
comment "PIC/PIE needs a toolchain w/ PIE"
|
comment "PIC/PIE needs a toolchain w/ PIE"
|
||||||
depends on !BR2_nios2
|
depends on BR2_PIC_PIE_ARCH_SUPPORTS
|
||||||
depends on BR2_SHARED_LIBS
|
depends on BR2_SHARED_LIBS
|
||||||
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
|
|
||||||
@@ -816,7 +821,7 @@ config BR2_RELRO_PARTIAL
|
|||||||
|
|
||||||
config BR2_RELRO_FULL
|
config BR2_RELRO_FULL
|
||||||
bool "Full"
|
bool "Full"
|
||||||
depends on !BR2_nios2 # BR2_PIC_PIE
|
depends on BR2_PIC_PIE_ARCH_SUPPORTS
|
||||||
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
select BR2_PIC_PIE
|
select BR2_PIC_PIE
|
||||||
help
|
help
|
||||||
@@ -825,7 +830,7 @@ config BR2_RELRO_FULL
|
|||||||
program loading, i.e every time an executable is started.
|
program loading, i.e every time an executable is started.
|
||||||
|
|
||||||
comment "RELRO Full needs a toolchain w/ PIE"
|
comment "RELRO Full needs a toolchain w/ PIE"
|
||||||
depends on !BR2_nios2
|
depends on BR2_PIC_PIE_ARCH_SUPPORTS
|
||||||
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|||||||
Reference in New Issue
Block a user