[BOLT] Update skipRelocation for aarch64
authorVladislav Khmelevsky <och95@yandex.ru>
Thu, 7 Apr 2022 19:33:41 +0000 (22:33 +0300)
committerVladislav Khmelevsky <och95@yandex.ru>
Wed, 13 Apr 2022 19:54:06 +0000 (22:54 +0300)
commit2f98c5febce2840034010c7ad9931988fc8dc61b
tree357a74a3d69ff258d8f81b0afbf649aa6bee5cfc
parentb8bac957d18bc159b9e0bb9978473faa4b8df03b
[BOLT] Update skipRelocation for aarch64

The ld might relax ADRP+ADD or ADRP+LDR sequences to the ADR+NOP, add
the new case to the skipRelocation for aarch64.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

Differential Revision: https://reviews.llvm.org/D123334
bolt/lib/Core/Relocation.cpp
bolt/test/AArch64/Inputs/skip-got-rel.yaml [new file with mode: 0644]
bolt/test/AArch64/skip-got-rel.test [new file with mode: 0644]
bolt/test/runtime/plt-lld.test