OSDN Git Service

[ARM][MC][Thumb] Recommit: Revert relocation for some pc-relative fixups.
authorMark Murray <mark.murray@arm.com>
Mon, 20 Apr 2020 15:21:46 +0000 (16:21 +0100)
committerMark Murray <mark.murray@arm.com>
Wed, 22 Apr 2020 15:54:26 +0000 (16:54 +0100)
commit3df8135286a2180a8fadcdddfcf9d9c232fb6ad7
treee60bc70dab71396ebf53c66297f4aeb600ce5d1a
parent43abef06f42d5f9bab4e8363207d5c486705f6b6
[ARM][MC][Thumb] Recommit: Revert relocation for some pc-relative fixups.

Summary:
This commit recommits the reversion of https://reviews.llvm.org/D75039.

Concensus appears to be in favour of assembly-time resolution of
these ADR and LDR relocations, in line with GNU. The previous
backout broke many lld tests, now fixed by Peter Smith in
61bccda9d9d920c72f49025f11e8601daeb096ec.

Reviewers: psmith

Subscribers: kristof.beyls, hiraditya, danielkiss, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78301
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
llvm/test/MC/ARM/pcrel-global-rel.s [deleted file]
llvm/test/MC/ARM/pcrel-global.s
llvm/test/MC/ARM/thumb1-relax-adr.s
llvm/test/MC/ARM/thumb1-relax-ldrlit.s