This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Always check for indirect symbol references before stripping
Changes PlannedPublic

Authored by int3 on Apr 26 2021, 5:24 PM.

Details

Summary

Previously, we only checked for those references when doing
--strip-all, but not when doing --discard-all. I believe that this
didn't cause issues with ld64-generated binaries as they did not create
indirect symbol references to local symbols (which --discard-all
removes). However LLD does emit these, exposing the issue.

Diff Detail

Event Timeline

int3 created this revision.Apr 26 2021, 5:24 PM
int3 requested review of this revision.Apr 26 2021, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2021, 5:25 PM
int3 planned changes to this revision.Sep 16 2021, 8:49 PM