[AArch64][MachO] Drop a 2015 ld64 workaround avoiding local relocations
authorFangrui Song <i@maskray.me>
Fri, 30 Jun 2023 00:59:15 +0000 (17:59 -0700)
committerFangrui Song <i@maskray.me>
Fri, 30 Jun 2023 00:59:15 +0000 (17:59 -0700)
commit05fb769b72834c62de3ac2d282e4949e77996c60
treeccae31883d142ca13fd1f5192fcb9aa8678b16c3
parent623e8455919af69b039fe7450118ba953423a027
[AArch64][MachO] Drop a 2015 ld64 workaround avoiding local relocations

Commit d6223a24718df3c30b67422c2eb6d0e93af9c4e8 introduced an ld64 workaround
that disables local relocations for many pointer-sized relocations (e.g.
relocations referencing `__DATA,__literal*`).

ld64 has been fixed long ago (2015). Drop this workaround so that the
behavior matches x86-64.

Reviewed By: pete

Differential Revision: https://reviews.llvm.org/D152831
llvm/lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
llvm/test/MC/MachO/AArch64/ld64-workaround.s
llvm/test/MC/MachO/AArch64/mergeable.s