56 lines · plain
1## Test the --exception-section option.2 3# RUN: yaml2obj --docnum=1 %s -o %t_xcoff32.o4# RUN: yaml2obj --docnum=2 %s -o %t_xcoff64.o5# RUN: llvm-readobj --exception-section %t_xcoff32.o |\6# RUN: FileCheck %s --check-prefixes=CHECK7# RUN: llvm-readobj --exception-section %t_xcoff64.o |\8# RUN: FileCheck %s --check-prefixes=CHECK9 10--- !XCOFF11FileHeader:12 MagicNumber: 0x1DF13Sections:14 - Name: .text15 Flags: [ STYP_TEXT ]16 - Name: .except17 Flags: [ STYP_EXCEPT ]18 SectionData: "000000000000000000340003"19## ^------- -SymbolIndex=020## ^- -LangID=021## ^- -Reason=022## ^------- -Trap Instr Addr=0x3423## ^- -LangID=024## ^- -Reason=325Symbols:26 - Name: .bar27 Section: .text28 29--- !XCOFF30FileHeader:31 MagicNumber: 0x1F732Sections:33 - Name: .text34 Flags: [ STYP_TEXT ]35 - Name: .except36 Flags: [ STYP_EXCEPT ]37 SectionData: "0000000000000000000000000000000000340003"38## ^--------------- -SymbolIndex=039## ^- -LangID=040## ^- -Reason=041## ^-------------- -Trap Instr Addr=0x3442## ^- -LangID=043## ^- -Reason=344Symbols:45 - Name: .bar46 Section: .text47 48# CHECK: Exception section {49# CHECK-NEXT: Symbol: .bar (0)50# CHECK-NEXT: LangID: 051# CHECK-NEXT: Reason: 052# CHECK-NEXT: Trap Instr Addr: 0x3453# CHECK-NEXT: LangID: 054# CHECK-NEXT: Reason: 355# CHECK-NEXT: }56