nuttx-update/libs
wangmingrong1 1200d49b83 gcov: Disable stack checking
When enable CONFIG_STACK_CANARIES, in general, the stack check in the __gcov_fork function is:
" return fork();
18: e59f3020 ldr r3, [pc, #32] @ 40 <__gcov_fork+0x40>
1c: e5932000 ldr r2, [r3]
20: e59d3004 ldr r3, [sp, #4]
24: e0332002 eors r2, r3, r2
28: e3a03000 mov r3, #0
2c: 1a000002 bne 3c <__gcov_fork+0x3c>"
r3 is obtained by taking the value of sp offset. But after opening thumb, the second comparison value in
"8c6: 4a06 ldr r2, [pc, #24] @ (8e0 <__gcov_fork+0x30>)
8c8: 6811 ldr r1, [r2, #0]
8ca: 687a ldr r2, [r7, #4]
8cc: 4051 eors r1, r2"
is obtained through r7. Since r7 stores the stack address at this time, which stores the address of the parent process, the stack out of bounds will occur in the child process

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-12-19 19:22:12 +08:00
..
libbuiltin gcov: Disable stack checking 2024-12-19 19:22:12 +08:00
libc libs/libc/stdlib: migrate to SPDX identifier 2024-12-17 18:14:31 +08:00
libdsp libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libm libm/newlib: Add arch-specific source code first to CSRCS 2024-12-04 02:10:41 +08:00
libnx makefile/build: Delete unnecessary bin and kbin folders 2024-11-10 01:18:26 +08:00
libxx libxx: Make LIBCXXABI default for sim/macOS 2024-12-17 09:25:24 +08:00
CMakeLists.txt libs: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00