3 # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-musl %s -o %t.o
4 # RUN: ld.lld --gc-sections %t.o -o %t
5 # RUN: llvm-readelf -S -r %t | FileCheck %s
7 # Test that we discard R_AARCH64_NONE, but respect the references it creates
11 # CHECK: There are no relocations in this file.
13 # RUN: ld.lld -r %t.o -o %t
14 # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
16 # RELOC: Section ({{.*}}) .rela.text {
17 # RELOC-NEXT: 0x0 R_AARCH64_NONE .data 0x0
23 .reloc 0, R_AARCH64_NONE, .data