Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / strip-reloc-symbol.test
blob63c9e122d9a2169c1b2be654fe647f78bb92b081
1 # RUN: yaml2obj %s -o %t
2 # RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   Type:            ET_REL
9   Machine:         EM_X86_64
10 Sections:
11   - Name:            .text
12     Type:            SHT_PROGBITS
13     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
14     Address:         0x1000
15     AddressAlign:    0x0000000000000010
16     Size:            64
17   - Name:            .rel.text
18     Type:            SHT_REL
19     Info:            .text
20     Relocations:
21       - Offset: 0x1000
22         Symbol: foo
23         Type:   R_X86_64_PC32
24 Symbols:
25   - Name:     foo
26     Type:     STT_FUNC
27     Section:  .text
28     Value:    0x1000
29     Size:     8
31 # CHECK: not stripping symbol 'foo' because it is named in a relocation