]> granicus.if.org Git - llvm/commit
[Assembler] Fix crash when assembling .quad for AArch32.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 18 Jan 2017 15:02:54 +0000 (15:02 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 18 Jan 2017 15:02:54 +0000 (15:02 +0000)
commit73dc33b204e19dd5a60edc41dfd818e962f7500c
tree356bb5d43c1c5c070b937dee424d82ee30ed9f42
parent4a5b076253a0f1e3d51c9a9c6cec384a19f40718
[Assembler] Fix crash when assembling .quad for AArch32.

A 64-bit relocation does not exist in 32-bit ARMELF. Report an error
instead of crashing.

PR23870
Patch by Sanne Wouda (sanwou01).
Differential Revision: https://reviews.llvm.org/D28851

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
test/MC/ARM/quad-relocation.s [new file with mode: 0644]