-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Bug] 很多bsp对c++的自动构造函数支持有问题 #11778
Copy link
Copy link
Open
Labels
Arch: RISC-VBSP related with risc-vBSP related with risc-vBSPBSP: HPMicroBSP related with HPMicroBSP related with HPMicrobugThis PR/issue is a bug in the current code.This PR/issue is a bug in the current code.
Description
Activity
Metadata
Metadata
Assignees
Labels
Arch: RISC-VBSP related with risc-vBSP related with risc-vBSPBSP: HPMicroBSP related with HPMicroBSP related with HPMicrobugThis PR/issue is a bug in the current code.This PR/issue is a bug in the current code.
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