Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / armexidx-link.test
blobbe4428aa93fba9c506d99107b9de574cbc5fe11b
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --remove-section=.text.bar %t %t2
3 # RUN: llvm-readobj --sections %t2 | FileCheck %s
5 # CHECK:          Index: 2
6 # CHECK-NEXT:     Name: .ARM.exidx.text.foo (1)
7 # CHECK-NEXT:     Type: SHT_ARM_EXIDX (0x70000001)
8 # CHECK:          Address: 0x0
9 # CHECK-NEXT:     Offset: 0x34
10 # CHECK-NEXT:     Size: 0
11 # CHECK-NEXT:     Link: 1
12 # CHECK-NEXT:     Info: 0
14 --- !ELF
15 FileHeader:      
16   Class:           ELFCLASS32
17   Data:            ELFDATA2LSB
18   Type:            ET_REL
19   Machine:         EM_ARM
20   Flags:           [ EF_ARM_EABI_VER5 ]
21 Sections:        
22   - Name:            .text.bar
23     Type:            SHT_PROGBITS
24     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
25     AddressAlign:    0x0000000000000004
26     Content:         ''
27   - Name:            .text.foo
28     Type:            SHT_PROGBITS
29     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
30     AddressAlign:    0x0000000000000004
31     Content:         ''
32   - Name:            .ARM.exidx.text.foo
33     Type:            SHT_ARM_EXIDX
34     Flags:           [ SHF_ALLOC, SHF_LINK_ORDER ]
35     Link:            .text.foo
36     AddressAlign:    0x0000000000000004
37     Content:         ''
38 Symbols:         
39   - Name:            .text.bar
40     Type:            STT_SECTION
41     Section:         .text.bar
42   - Name:            .text.foo
43     Type:            STT_SECTION
44     Section:         .text.foo
45   - Name:            .ARM.exidx.text.foo
46     Type:            STT_SECTION
47     Section:         .ARM.exidx.text.foo