[BOLT] Ignore duplicate global symbols
authorRafael Auler <rafaelauler@fb.com>
Tue, 18 Oct 2022 02:01:46 +0000 (19:01 -0700)
committerRafael Auler <rafaelauler@fb.com>
Wed, 19 Oct 2022 18:52:06 +0000 (11:52 -0700)
commitc0d954a068a1896f2673f2fadec72bb01a243aaa
tree9adb5f3205990d07e30ce4b2de023f419ffa279f
parent925be4e7de8415aa04153bebc7ab09184453e061
[BOLT] Ignore duplicate global symbols

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.

Reviewed By: #bolt, maksfb

Differential Revision: https://reviews.llvm.org/D136122
bolt/lib/Rewrite/RewriteInstance.cpp