Skip to content

lld silently creates an non-working executable if both .ctors and .init_array exist #68071

@rui314

Description

@rui314

If input object files contain both .ctors and .init_array, the result would contain both .ctors and .init_array, and the result is very likely to crash because some initializer are not executed. We may want to emit a warning from lld if the output may not work due to this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions