This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Implement -hidden-l
ClosedPublic

Authored by BertalanD on Jul 25 2022, 4:02 PM.

Details

Reviewers
thakis
Group Reviewers
Restricted Project
Commits
rGb2c53a9217cf: [lld-macho] Implement -hidden-l
Summary

Similarly to -load_hidden, this flag instructs the linker to not export
symbols from the specified archive. While that flag takes a path,
-hidden-l looks for the specified library name in the search path.

The test changes are needed because -hidden-lfoo resolves to libfoo.a,
not foo.a.

Diff Detail

Event Timeline

BertalanD created this revision.Jul 25 2022, 4:02 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 25 2022, 4:02 PM
BertalanD requested review of this revision.Jul 25 2022, 4:02 PM
thakis accepted this revision.Jul 25 2022, 4:09 PM
thakis added a subscriber: thakis.

LGTM

This revision is now accepted and ready to land.Jul 25 2022, 4:09 PM
This revision was landed with ongoing or failed builds.Jul 25 2022, 4:47 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 4:47 PM