1 ## Test the --exception-section option.
3 # RUN: yaml2obj --docnum=1 %s -o %t_xcoff32.o
4 # RUN: yaml2obj --docnum=2 %s -o %t_xcoff64.o
5 # RUN: llvm-readobj --exception-section %t_xcoff32.o |\
6 # RUN: FileCheck %s --check-prefixes=CHECK
7 # RUN: llvm-readobj --exception-section %t_xcoff64.o |\
8 # RUN: FileCheck %s --check-prefixes=CHECK
17 Flags: [ STYP_EXCEPT ]
18 SectionData: "000000000000000000340003"
19 ## ^------- -SymbolIndex=0
22 ## ^------- -Trap Instr Addr=0x34
36 Flags: [ STYP_EXCEPT ]
37 SectionData: "0000000000000000000000000000000000340003"
38 ## ^--------------- -SymbolIndex=0
41 ## ^-------------- -Trap Instr Addr=0x34
48 # CHECK: Exception section {
49 # CHECK-NEXT: Symbol: .bar (0)
50 # CHECK-NEXT: LangID: 0
51 # CHECK-NEXT: Reason: 0
52 # CHECK-NEXT: Trap Instr Addr: 0x34
53 # CHECK-NEXT: LangID: 0
54 # CHECK-NEXT: Reason: 3