Skip to content

[Bug] 很多bsp对c++的自动构造函数支持有问题 #11778

Description

@kaidegit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: RISC-VBSP related with risc-vBSPBSP: HPMicroBSP related with HPMicrobugThis PR/issue is a bug in the current code.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions