|
@@ -716,6 +716,8 @@ comment "Security Hardening Options"
|
|
|
config BR2_PIC_PIE
|
|
|
bool "Build code with PIC/PIE"
|
|
|
default y
|
|
|
+ # Nios2 toolchains produce non working binaries with -fPIC
|
|
|
+ depends on !BR2_nios2
|
|
|
depends on BR2_SHARED_LIBS
|
|
|
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
|
|
help
|
|
@@ -723,6 +725,7 @@ config BR2_PIC_PIE
|
|
|
Position-Independent Executables (PIE).
|
|
|
|
|
|
comment "PIC/PIE needs a toolchain w/ PIE"
|
|
|
+ depends on !BR2_nios2
|
|
|
depends on BR2_SHARED_LIBS
|
|
|
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
|
|
|
|
@@ -813,6 +816,7 @@ config BR2_RELRO_PARTIAL
|
|
|
|
|
|
config BR2_RELRO_FULL
|
|
|
bool "Full"
|
|
|
+ depends on !BR2_nios2 # BR2_PIC_PIE
|
|
|
depends on BR2_TOOLCHAIN_SUPPORTS_PIE
|
|
|
select BR2_PIC_PIE
|
|
|
help
|
|
@@ -821,6 +825,7 @@ config BR2_RELRO_FULL
|
|
|
program loading, i.e every time an executable is started.
|
|
|
|
|
|
comment "RELRO Full needs a toolchain w/ PIE"
|
|
|
+ depends on !BR2_nios2
|
|
|
depends on !BR2_TOOLCHAIN_SUPPORTS_PIE
|
|
|
|
|
|
endchoice
|