mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
2c9ed5d050
This enhances the ARMAsmParser to handle .tlsdescseq directives. This is a slightly special relocation. We must be able to generate them, but not consume them in assembly. The relocation is meant to assist the linker in generating a TLS descriptor sequence. The ELF target streamer is enhanced to append additional fixups into the current segment and that is used to emit the new R_ARM_TLS_DESCSEQ relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200448 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
834 B
ArmAsm
36 lines
834 B
ArmAsm
@ RUN: not llvm-mc -triple armv7-linux-gnu -filetype asm -o /dev/null %s 2>&1 \
|
|
@ RUN: | FileCheck %s
|
|
|
|
.type missing_variable,%function
|
|
missing_variable:
|
|
.tlsdescseq
|
|
|
|
@ CHECK: error: expected variable after '.tlsdescseq' directive
|
|
@ CHECK: .tlsdescseq
|
|
@ CHECK: ^
|
|
|
|
.type bad_expression,%function
|
|
bad_expression:
|
|
.tlsdescseq variable(tlsdesc)
|
|
|
|
@ CHECK: error: unexpected token
|
|
@ CHECK: .tlsdescseq variable(tlsdesc)
|
|
@ CHECK: ^
|
|
|
|
.type trailing_garbage,%function
|
|
trailing_garbage:
|
|
.tlsdescseq variable,
|
|
|
|
@ CHECK: error: unexpected token
|
|
@ CHECK: .tlsdescseq variable,
|
|
@ CHECK: ^
|
|
|
|
.type invalid_use,%function
|
|
invalid_use:
|
|
blx invalid(tlsdescseq)
|
|
|
|
@ CHECK: error: invalid variant 'tlsdescseq'
|
|
@ CHECK: blx invalid(tlsdescseq)
|
|
@ CHECK: ^
|
|
|