RT-Thread Version
master
Affected area
Board Support Package (BSP)
Hardware/BSP vendor
HPMicro
Architecture
RISC-V
Board and hardware details
hpm
Develop Toolchain
GCC
Describe the bug
cplusplus_system_init 目前只调用[ctors_start, ctors_end),而 GCC(可能是新版特性) 把 ctor 放在 .init_array了。
我拿ci检测了一下:https://github.com/kaidegit/rt-thread/actions/runs/33521591507
解决方案是规范一下链接脚本(把init array也放到[ctors_start, ctors_end)),还是cplusplus_system_init也跑一下init array部分呢?
Other additional context
No response
RT-Thread Version
master
Affected area
Board Support Package (BSP)
Hardware/BSP vendor
HPMicro
Architecture
RISC-V
Board and hardware details
hpm
Develop Toolchain
GCC
Describe the bug
cplusplus_system_init目前只调用[ctors_start, ctors_end),而 GCC(可能是新版特性) 把 ctor 放在 .init_array了。我拿ci检测了一下:https://github.com/kaidegit/rt-thread/actions/runs/33521591507
解决方案是规范一下链接脚本(把init array也放到[ctors_start, ctors_end)),还是cplusplus_system_init也跑一下init array部分呢?
Other additional context
No response