build/x86: also test the stack protector on x86 secondary arch
on x86, gcc emits a local reference to __stack_chk_fail_local which can only be provided by a static library. as we don't have a libroot_nonshared, we use libgcc from gcc, in which libssp_nonshared was merged, from version 8.3.0_2019_05_24-11. Change-Id: I22bf26dec5c1fe69a3915a923bd716a494f846ce Reviewed-on: https://review.haiku-os.org/c/haiku/+/4564 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -2739,6 +2739,8 @@ void srand48() {}
|
|||||||
void srand48_r() {}
|
void srand48_r() {}
|
||||||
void srandom() {}
|
void srandom() {}
|
||||||
void srandom_r() {}
|
void srandom_r() {}
|
||||||
|
void __stack_chk_fail() {}
|
||||||
|
void __stack_chk_fail_local() {}
|
||||||
void sscanf() {}
|
void sscanf() {}
|
||||||
void statvfs() {}
|
void statvfs() {}
|
||||||
void stime() {}
|
void stime() {}
|
||||||
|
|||||||
@@ -30,10 +30,14 @@ SimpleTest get_cpu_num_test :
|
|||||||
|
|
||||||
|
|
||||||
CCFLAGS += -fstack-protector ;
|
CCFLAGS += -fstack-protector ;
|
||||||
SimpleTest stack_protector_test :
|
local architectureObject ;
|
||||||
stack_protector_test.c
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||||
;
|
on $(architectureObject) {
|
||||||
|
SimpleTest [ MultiArchDefaultGristFiles stack_protector_test ] :
|
||||||
|
stack_protector_test.c
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Tell Jam where to find these sources
|
# Tell Jam where to find these sources
|
||||||
|
|||||||
Reference in New Issue
Block a user