1 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -relocation-model=static %s | \
2 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-BE
3 # RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj -relocation-model=pic %s | \
4 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-BE
5 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -relocation-model=static %s | \
6 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=STATIC -check-prefix=STATIC-LE
7 # RUN: llvm-mc -triple=powerpc64le-unknown-linux-gnu -filetype=obj -relocation-model=pic %s | \
8 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-LE
16 # STATIC: Name: .eh_frame
17 # STATIC-NEXT: Type: SHT_PROGBITS
18 # STATIC-NEXT: Flags [ (0x2)
19 # STATIC-NEXT: SHF_ALLOC
21 # STATIC-NEXT: Address:
22 # STATIC-NEXT: Offset:
23 # STATIC-NEXT: Size: 40
24 # STATIC-NEXT: Link: 0
25 # STATIC-NEXT: Info: 0
26 # STATIC-NEXT: AddressAlignment: 8
27 # STATIC-NEXT: EntrySize:
28 # STATIC-NEXT: Relocations [
30 # STATIC-NEXT: SectionData (
31 # STATIC-BE-NEXT: 0000: 00000010 00000000 037A5200 04784101
32 # STATIC-LE-NEXT: 0000: 10000000 00000000 037A5200 04784101
33 # STATIC-BE-NEXT: 0010: 1B0C0100 00000010 00000018 00000000
34 # STATIC-LE-NEXT: 0010: 1B0C0100 10000000 18000000 00000000
35 # STATIC-BE-NEXT: 0020: 00000004 00000000
36 # STATIC-LE-NEXT: 0020: 04000000 00000000
41 # STATIC: Name: .rela.eh_frame
42 # STATIC-NEXT: Type: SHT_RELA
43 # STATIC-NEXT: Flags [ (0x0)
45 # STATIC-NEXT: Address:
46 # STATIC-NEXT: Offset:
47 # STATIC-NEXT: Size: 24
50 # STATIC-NEXT: AddressAlignment: 8
51 # STATIC-NEXT: EntrySize: 24
52 # STATIC-NEXT: Relocations [
53 # STATIC-NEXT: 0x1C R_PPC64_REL32 .text 0x0
57 # PIC: Name: .eh_frame
58 # PIC-NEXT: Type: SHT_PROGBITS
59 # PIC-NEXT: Flags [ (0x2)
67 # PIC-NEXT: AddressAlignment: 8
68 # PIC-NEXT: EntrySize: 0
69 # PIC-NEXT: Relocations [
71 # PIC-NEXT: SectionData (
72 # PIC-BE-NEXT: 0000: 00000010 00000000 037A5200 04784101
73 # PIC-LE-NEXT: 0000: 10000000 00000000 037A5200 04784101
74 # PIC-BE-NEXT: 0010: 1B0C0100 00000010 00000018 00000000
75 # PIC-LE-NEXT: 0010: 1B0C0100 10000000 18000000 00000000
76 # PIC-BE-NEXT: 0020: 00000004 00000000
77 # PIC-LE-NEXT: 0020: 04000000 00000000
82 # PIC: Name: .rela.eh_frame
83 # PIC-NEXT: Type: SHT_RELA
84 # PIC-NEXT: Flags [ (0x0)
91 # PIC-NEXT: AddressAlignment: 8
92 # PIC-NEXT: EntrySize: 24
93 # PIC-NEXT: Relocations [
94 # PIC-NEXT: 0x1C R_PPC64_REL32 .text 0x0