brintos

brintos / llvm-project-archived public Read only

0
0
Text · 825 B · eef04ea Raw
38 lines · plain
1# REQUIRES: x862# RUN: split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o4 5## Discard .plt, .iplt, and .got.plt6# RUN: ld.lld -shared -T %t/t %t/a.o -o %t/a7# RUN: llvm-readelf -S -d %t/a > %t/readelf.txt8# RUN: FileCheck %s --input-file %t/readelf.txt9# RUN: FileCheck %s --input-file %t/readelf.txt --check-prefix=NEG10 11# CHECK:      [Nr] Name      Type     Address  Off      Size   ES Flg Lk Inf Al12# CHECK:      ] .rela.plt RELA     [[#%x,]] [[#%x,]] 000018 18   A  1   0  813 14# CHECK:      (PLTGOT)  0x015# CHECK:      (PLTREL)  RELA16 17# NEG-NOT: ] .plt18# NEG-NOT: ] .iplt19# NEG-NOT: ] .got.plt20 21#--- a.s22  call foo23  call ifunc24 25.type ifunc, @gnu_indirect_function26.hidden ifunc27ifunc:28  ret29 30.data31.quad ifunc32 33#--- t34SECTIONS {35  .text : { *(.text) }36  /DISCARD/ : { *(.plt .iplt .got.plt) }37}38