1 # Regression test for the following case:
3 # int main() { return 0; }
4 # $ clang -static /tmp/a.c -o /tmp/a
5 # $ llvm-strip /tmp/a -o /tmp/b
6 # llvm-strip: error: Link field value 0 in section .rela.plt is invalid.
8 # RUN: yaml2obj %s -o %t.original
9 # RUN: llvm-strip %t.original -o %t.stripped
10 # RUN: llvm-readobj --sections %t.original | FileCheck %s
11 # RUN: llvm-readobj --sections %t.stripped | FileCheck %s
22 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
25 Flags: [ SHF_ALLOC, SHF_INFO_LINK ]
30 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
33 Flags: [ SHF_ALLOC, SHF_WRITE ]
35 # CHECK: Name: .rela.plt
36 # CHECK-NEXT: Type: SHT_RELA
38 # CHECK-NEXT: SHF_ALLOC
39 # CHECK-NEXT: SHF_INFO_LINK
41 # CHECK-NEXT: Address: