Skip to content

Enable wasm-ld's --gc-sections option for code size and import requirements #5128

Closed
@kateinoigakukun

Description

@kateinoigakukun

Now wasm-ld strips data segments referenced through __start/__stop symbols during GC, and it removes Swift metadata sections like swift5_protocols
We should add support of SHF_GNU_RETAIN-like flag for __attribute__((retain)) to LLVM and wasm-ld. For now, just disable section GC for Wasm target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvmNeed LLVM changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions