build: extend stack protection
* use -fstack-protector-strong and -fstack-clash-protection * also bin and some user add-ons Change-Id: I593365e55414ac447bde54980a5c73202e9bb172 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8887 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Adrien Destugues <[email protected]> Haiku-Format: Haiku-format Bot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
e4c39f6a93
commit
c8cd427e30
@@ -618,9 +618,9 @@ rule ArchitectureSetupWarnings architecture
|
||||
# enable stack protector, if requested
|
||||
if $(HAIKU_USE_STACK_PROTECTOR) = 1 {
|
||||
AppendToConfigVar CCFLAGS : HAIKU_TOP $(dirTokens) :
|
||||
-fstack-protector : $(scope) ;
|
||||
-fstack-protector-strong -fstack-clash-protection : $(scope) ;
|
||||
AppendToConfigVar C++FLAGS : HAIKU_TOP $(dirTokens) :
|
||||
-fstack-protector : $(scope) ;
|
||||
-fstack-protector-strong -fstack-clash-protection : $(scope) ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -795,6 +795,12 @@ rule ArchitectureSetupWarnings architecture
|
||||
EnableWerror src system libroot posix wchar ;
|
||||
EnableWerror src system runtime_loader ;
|
||||
|
||||
EnableStackProtector src add-ons input_server ;
|
||||
EnableStackProtector src add-ons media ;
|
||||
EnableStackProtector src add-ons print ;
|
||||
EnableStackProtector src add-ons screen_savers ;
|
||||
EnableStackProtector src add-ons translators ;
|
||||
EnableStackProtector src bin ;
|
||||
EnableStackProtector src apps ;
|
||||
EnableStackProtector src kits ;
|
||||
EnableStackProtector src preferences ;
|
||||
|
||||
Reference in New Issue
Block a user