Skip to content

Identical Code Folding (ICF) support #1595

@zamazan4ik

Description

@zamazan4ik

Hi!

I found that right now wild doesn't support ICF functionality. Are there plans to support it in the future? If yes, how far is it in the wild backlog? :) I tried to find any kind of roadmap or related discussions about ICF in the repo but I've found nothing.

My personal use cases are about shrinking binary size, mostly for Rust-only binaries. However, some Rust binaries are consist of some C or C++ dependencies, so I am interested in ICF support for C stuff too. That's why it would be nice to see support not only for icf=all but for icf=safe too. Unfortunately, right now mold doesn't support safe mode so I forced to use LLD instead.

I totally understand that there are features to implement with much higher priority since ICF comparatively rarely used (from my experience). But it would be nice to have ICF support once in the future in wild too. Not pushing or anything like that - just curious :)

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions