20 lines · plain
1// REQUIRES: x862 3// Verifies that .rela_iplt_{start,end} point to a dummy section4// if .rela.iplt does not exist.5 6// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o7// RUN: ld.lld -static %t.o -o %t.exe8// RUN: llvm-readelf -S -s %t.exe | FileCheck %s9 10// CHECK: Name Type Address Off11// CHECK: .text PROGBITS 0000000000201120 00012012// CHECK: Value Size Type Bind Vis Ndx Name13// CHECK: 0000000000200000 0 NOTYPE LOCAL HIDDEN 1 __rela_iplt_start14// CHECK: 0000000000200000 0 NOTYPE LOCAL HIDDEN 1 __rela_iplt_end15 16.globl _start17_start:18 movl $__rela_iplt_start, %edx19 movl $__rela_iplt_end, %edx20