brintos

brintos / llvm-project-archived public Read only

0
0
Text · 939 B · 2c138e1 Raw
31 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy -R .got.plt %t %t23 4## .rela.plt is a dynamic relocation section that has a connection5## via sh_info field with its target section .got.plt.6## Here we check that if the target section is removed then dynamic7## relocation section is also removed and we do not end up with a broken8## sh_info value, for example.9 10# RUN: llvm-readelf --sections %t2 \11# RUN:  | FileCheck %s --implicit-check-not=".got.plt" --implicit-check-not=".rela.plt"12 13--- !ELF14FileHeader:15  Class:          ELFCLASS6416  Data:           ELFDATA2LSB17  Type:           ET_DYN18  Machine:        EM_X86_6419Sections:20  - Name:         .rela.plt21    Type:         SHT_RELA22    Flags:        [ SHF_ALLOC ]23    Link:         .dynsym24    Info:         .got.plt25  - Name:         .got.plt26    Type:         SHT_PROGBITS27    Flags:        [ SHF_WRITE, SHF_ALLOC ]28DynamicSymbols:29  - Name:          bar30    Binding:       STB_GLOBAL31