mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
3a02b12439
llvm-svn: 361041
27 lines
608 B
ArmAsm
27 lines
608 B
ArmAsm
# REQUIRES: aarch64
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-musl %s -o %t.o
|
|
# RUN: ld.lld --gc-sections %t.o -o %t
|
|
# RUN: llvm-readelf -S -r %t | FileCheck %s
|
|
|
|
# Test that we discard R_AARCH64_NONE, but respect the references it creates
|
|
# among sections.
|
|
|
|
# CHECK: .data
|
|
# CHECK: There are no relocations in this file.
|
|
|
|
# RUN: ld.lld -r %t.o -o %t
|
|
# RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
|
|
|
|
# RELOC: Section ({{.*}}) .rela.text {
|
|
# RELOC-NEXT: 0x0 R_AARCH64_NONE .data 0x0
|
|
# RELOC-NEXT: }
|
|
|
|
.globl _start
|
|
_start:
|
|
ret
|
|
.reloc 0, R_AARCH64_NONE, .data
|
|
|
|
.data
|
|
.long 0
|