[BOLT] Ignore duplicate relocations

Summary:
lld linker may emit static relocations against addresses that also have
dynamic relocations associated with them. When this happens, BOLT fails
to validate the extracted value at the address.

Read dynamic relocations in the binary and ignore static relocations at
addresses that have a duplicate dynamic relocation.

(cherry picked from FBD22192345)
5 files changed
tree: db45e53b6c62bf199a78419f16524e312d3b5590
  1. bolt/