2 # RUN: split-file %s %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o
5 ## Discard .plt, .iplt, and .got.plt
6 # RUN: ld.lld -shared -T %t/t %t/a.o -o %t/a
7 # RUN: llvm-readelf -S -d %t/a > %t/readelf.txt
8 # RUN: FileCheck %s --input-file %t/readelf.txt
9 # RUN: FileCheck %s --input-file %t/readelf.txt --check-prefix=NEG
11 # CHECK: [Nr] Name Type Address Off Size ES Flg Lk Inf Al
12 # CHECK: ] .rela.plt RELA [[#%x,]] [[#%x,]] 000018 18 A 1 0 8
15 # CHECK: (PLTREL) RELA
25 .type ifunc, @gnu_indirect_function
36 /DISCARD
/ : { *(.plt .iplt .got.plt) }