llvm-project/llvm/lib/Target/ARM/MCTargetDesc
Jonas Devlieghere ccf7d4b4aa Produce an error on non-encodable offsets for darwin ARM scattered relocations.
Scattered ARM relocations for Mach-O's only have 24 bits available to
encode the offset. This is not checked but just truncated and can result
in corrupt binaries after linking because the relocations are applied to
the wrong offset. This patch will check and error out in those
situations instead of emitting a wrong relocation.

Patch by: Sander Bogaert (dzn)

Differential revision: https://reviews.llvm.org/D54776

llvm-svn: 347922
2018-11-29 21:58:23 +00:00
..
ARMAddressingModes.h Fix typo in previous commit 2018-09-08 04:07:41 +00:00
ARMAsmBackend.cpp ARM-MachO: don't add Thumb bit for addend to non-external relocation. 2018-08-06 11:32:44 +00:00
ARMAsmBackend.h [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
ARMAsmBackendDarwin.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
ARMAsmBackendELF.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
ARMAsmBackendWinCOFF.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
ARMBaseInfo.h ARM: fix Thumb2 CodeGen for ldrex with folded frame-index. 2018-09-07 09:21:25 +00:00
ARMELFObjectWriter.cpp The initial .text section generated in object files was missing the 2018-09-06 22:09:31 +00:00
ARMELFStreamer.cpp [ARM] Emmit data symbol for constant pool data 2018-10-02 14:55:48 +00:00
ARMFixupKinds.h
ARMMCAsmInfo.cpp [ARM] Account for implicit IT when calculating inline asm size 2018-10-08 09:38:28 +00:00
ARMMCAsmInfo.h
ARMMCCodeEmitter.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
ARMMCExpr.cpp Remove redundant includes from lib/Target/ARM. 2017-12-13 21:31:17 +00:00
ARMMCExpr.h
ARMMCTargetDesc.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
ARMMCTargetDesc.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
ARMMachORelocationInfo.cpp Remove redundant includes from lib/Target/ARM. 2017-12-13 21:31:17 +00:00
ARMMachObjectWriter.cpp Produce an error on non-encodable offsets for darwin ARM scattered relocations. 2018-11-29 21:58:23 +00:00
ARMTargetStreamer.cpp [Target] Untangle disassemblers 2018-09-10 12:53:46 +00:00
ARMUnwindOpAsm.cpp
ARMUnwindOpAsm.h
ARMWinCOFFObjectWriter.cpp ARM: correct the relocation type for `bl` on WoA 2018-09-13 04:55:08 +00:00
ARMWinCOFFStreamer.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
CMakeLists.txt List cpp file only once (was added in 147117 and 147117 as build fix each). 2018-04-23 13:11:51 +00:00
LLVMBuild.txt