15 lines · plain
1# REQUIRES: x862# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux3# RUN: llvm-mc %p/Inputs/writable-sec-plt-reloc.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux4# RUN: ld.lld %t2.o -o %t2.so -shared5# RUN: ld.lld %t.o %t2.so -o %t6# RUN: llvm-readelf --symbols -r %t | FileCheck %s7 8# CHECK: R_X86_64_JUMP_SLOT {{.*}} foo + 09# CHECK: 0 FUNC GLOBAL DEFAULT UND foo10 11.section .bar,"awx"12.global _start13_start:14 .long foo - .15