3 // Verifies that
.rela_iplt_{start,end} point to a dummy section
4 // if
.rela.iplt does not exist.
6 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t.o
7 // RUN
: ld.lld
-static
%t.o
-o
%t.exe
8 // RUN
: llvm-readelf
-S
-s
%t.exe | FileCheck
%s
10 // CHECK
: Name Type Address Off
11 // CHECK
: .text PROGBITS 0000000000201120 000120
12 // CHECK
: Value Size Type Bind Vis Ndx Name
13 // CHECK
: 0000000000200000 0 NOTYPE LOCAL HIDDEN
1 __rela_iplt_start
14 // CHECK
: 0000000000200000 0 NOTYPE LOCAL HIDDEN
1 __rela_iplt_end
18 movl $__rela_iplt_start
, %edx
19 movl $__rela_iplt_end
, %edx