nuttx/arch/xtensa/src
chao an 4b94dc3092 toolchain/gcc: fix linker error if enable STACK_CANARIES/LTO at same time
If -fstack-protector-all is enabled, gcc linker will need GCC
SSP(Stack Smashing Protector) support, Since the implement of SSP
is related to the OS, most of embedded toolchain does not provide
ssp support, so an error will be reported when linking:

enable CONFIG_LTO_FULL && CONFIG_STACK_CANARIES

arm-none-eabi/bin/ld: cannot find -lssp_nonshared: No such file or directory
arm-none-eabi/bin/ld: cannot find -lssp: No such file or directory

https://github.com/gcc-mirror/gcc/blob/master/gcc/gcc.cc#L983-L985

Since nuttx has already implemented SSP related hook functions,
so in this PR, we filter out this option in the link phase to ensure that
the implementation of lssp/lssp_nonshared will not be referenced

Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-21 01:13:34 +08:00
..
common xtensa_saveusercontext:Leave the context information empty 2023-07-13 09:48:46 +08:00
esp32 Fix nuttx coding style 2023-07-14 01:16:06 +08:00
esp32s2 Kconfig: Simplify the conditional default statement 2023-07-16 14:39:20 -03:00
esp32s3 Fix nuttx coding style 2023-07-14 01:16:06 +08:00
lx6 libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
lx7 libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
.gitignore
Makefile toolchain/gcc: fix linker error if enable STACK_CANARIES/LTO at same time 2023-07-21 01:13:34 +08:00