HomePhabricator

[lld-macho] Allow exporting weak_def_can_be_hidden(AKA "autohide") symbols

Authored by oontvoo on Nov 8 2021, 4:50 PM.

Description

[lld-macho] Allow exporting weak_def_can_be_hidden(AKA "autohide") symbols

autohide symbols behaves similarly to private_extern symbols.
However, LD64 allows exporting autohide symbols. LLD currently does not.
This patch allows LLD to export them.

Differential Revision: https://reviews.llvm.org/D113167