• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -triple=powerpc64-unknown-linux-gnu -filetype=obj %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 %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 %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 %s | \
8# RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-LE
9
10_proc:
11        .cfi_startproc
12        nop
13        .cfi_endproc
14
15# STATIC:      Section {
16# STATIC:        Name: .eh_frame
17# STATIC-NEXT:   Type: SHT_PROGBITS
18# STATIC-NEXT:   Flags [ (0x2)
19# STATIC-NEXT:     SHF_ALLOC
20# STATIC-NEXT:   ]
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 [
29# STATIC-NEXT:   ]
30# STATIC-NEXT:   SectionData (
31# STATIC-BE-NEXT:  0000: 00000010 00000000 017A5200 04784101
32# STATIC-LE-NEXT:  0000: 10000000 00000000 017A5200 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
37# STATIC-NEXT:   )
38# STATIC-NEXT: }
39
40# STATIC:      Section {
41# STATIC:        Name: .rela.eh_frame
42# STATIC-NEXT:   Type: SHT_RELA
43# STATIC-NEXT:   Flags [ (0x0)
44# STATIC-NEXT:   ]
45# STATIC-NEXT:   Address:
46# STATIC-NEXT:   Offset:
47# STATIC-NEXT:   Size: 24
48# STATIC-NEXT:   Link:
49# STATIC-NEXT:   Info:
50# STATIC-NEXT:   AddressAlignment: 8
51# STATIC-NEXT:   EntrySize: 24
52# STATIC-NEXT:   Relocations [
53# STATIC-NEXT:     0x1C R_PPC64_REL32 .text 0x0
54# STATIC-NEXT:   ]
55
56# PIC:      Section {
57# PIC:        Name: .eh_frame
58# PIC-NEXT:   Type: SHT_PROGBITS
59# PIC-NEXT:   Flags [ (0x2)
60# PIC-NEXT:     SHF_ALLOC
61# PIC-NEXT:   ]
62# PIC-NEXT:   Address:
63# PIC-NEXT:   Offset:
64# PIC-NEXT:   Size: 40
65# PIC-NEXT:   Link: 0
66# PIC-NEXT:   Info: 0
67# PIC-NEXT:   AddressAlignment: 8
68# PIC-NEXT:   EntrySize: 0
69# PIC-NEXT:   Relocations [
70# PIC-NEXT:   ]
71# PIC-NEXT:   SectionData (
72# PIC-BE-NEXT:  0000: 00000010 00000000 017A5200 04784101
73# PIC-LE-NEXT:  0000: 10000000 00000000 017A5200 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
78# PIC-NEXT:   )
79# PIC-NEXT: }
80
81# PIC:      Section {
82# PIC:        Name: .rela.eh_frame
83# PIC-NEXT:   Type: SHT_RELA
84# PIC-NEXT:   Flags [ (0x0)
85# PIC-NEXT:   ]
86# PIC-NEXT:   Address:
87# PIC-NEXT:   Offset:
88# PIC-NEXT:   Size: 24
89# PIC-NEXT:   Link:
90# PIC-NEXT:   Info:
91# PIC-NEXT:   AddressAlignment: 8
92# PIC-NEXT:   EntrySize: 24
93# PIC-NEXT:   Relocations [
94# PIC-NEXT:     0x1C R_PPC64_REL32 .text 0x0
95# PIC-NEXT:   ]
96