1 # RUN: yaml2obj %s -o %t
\r
2 # RUN: llvm-objcopy -R .got.plt %t %t2
\r
4 ## .rela.plt is a dynamic relocation section that has a connection
\r
5 ## via sh_info field with its target section .got.plt.
\r
6 ## Here we check that if the target section is removed then dynamic
\r
7 ## relocation section is also removed and we do not end up with a broken
\r
8 ## sh_info value, for example.
\r
10 # RUN: llvm-readelf --sections %t2 \
\r
11 # RUN: | FileCheck %s --implicit-check-not=".got.plt" --implicit-check-not=".rela.plt"
\r
22 Flags: [ SHF_ALLOC ]
\r
27 Flags: [ SHF_WRITE, SHF_ALLOC ]
\r