This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Ignore duplicate global symbols
ClosedPublic

Authored by rafauler on Oct 17 2022, 7:10 PM.

Details

Reviewers
Amir
maksfb
Group Reviewers
Restricted Project
Commits
rGc0d954a068a1: [BOLT] Ignore duplicate global symbols
Summary

We noticed some binaries with duplicated global symbol
entries (same name, address and size). Ignore them as it is possibly a
bug in the linker, and continue processing, unless the symbol has a
different size or address.

Diff Detail

Event Timeline

rafauler created this revision.Oct 17 2022, 7:10 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
rafauler requested review of this revision.Oct 17 2022, 7:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 7:10 PM

Since the erroneous condition could be triggered by a bad input, we should replace the assertion with an error.

rafauler updated this revision to Diff 468654.Oct 18 2022, 12:11 PM

Convert assertion into error

maksfb accepted this revision.Oct 18 2022, 4:49 PM

LGTM

This revision is now accepted and ready to land.Oct 18 2022, 4:49 PM
This revision was automatically updated to reflect the committed changes.