mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
992aad1a5d
This generalizes an existing fix from ELF to MachO and COFF. Test that an ADRP to a local symbol whose offset is known at assembly time still produces relocations, both for MachO and COFF. Test that an ADRP without a @page modifier on MachO fails (previously it didn't). Differential Revision: https://reviews.llvm.org/D35544 llvm-svn: 308518
7 lines
177 B
ArmAsm
7 lines
177 B
ArmAsm
; RUN: not llvm-mc < %s -triple arm64-apple-darwin -filetype=obj -o - 2>&1 | FileCheck %s
|
|
|
|
; CHECK: error: ADR/ADRP relocations must be GOT relative
|
|
adrp x3, Lbar
|
|
Lbar:
|
|
ret
|