This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Adapted policy checks for stripped binaries
AbandonedPublic

Authored by Amir on Jul 19 2022, 2:51 AM.

Details

Summary

Stripped binaries do not have relocation and symbol name.
Relax sibling and entry point policy checks for stripped binaries.

Test Plan:

ninja check-bolt

Diff Detail

Event Timeline

nhuhuan created this revision.Jul 19 2022, 2:51 AM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
nhuhuan requested review of this revision.Jul 19 2022, 2:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2022, 2:51 AM
Amir accepted this revision.Jul 20 2022, 7:21 PM

LGTM

This revision is now accepted and ready to land.Jul 20 2022, 7:21 PM
Amir requested changes to this revision.Jul 27 2022, 11:13 PM
Amir added inline comments.
bolt/lib/Core/BinaryContext.cpp
1132

Please remove --> in comments.

This revision now requires changes to proceed.Jul 27 2022, 11:13 PM
nhuhuan updated this revision to Diff 448494.Jul 28 2022, 5:42 PM

Updated comment

nhuhuan updated this revision to Diff 448507.Jul 28 2022, 9:10 PM

Clarify that it will not affect the correctness in processing nonstripped
binaries.

Amir commandeered this revision.Feb 16 2023, 2:27 PM
Amir edited reviewers, added: nhuhuan; removed: Amir.

Reject stripped binaries as a policy (D142686).

Amir abandoned this revision.Feb 16 2023, 2:27 PM