File: section.s

package info (click to toggle)
llvm-3.1 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 80,224 kB
  • sloc: cpp: 491,014; asm: 110,971; ansic: 14,579; sh: 13,120; python: 6,152; ml: 4,719; makefile: 1,830; pascal: 1,553; perl: 874; xml: 283; lisp: 187; csh: 117; exp: 4
file content (107 lines) | stat: -rw-r--r-- 3,043 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# RUN: llvm-mc -triple i386-pc-linux-gnu -filetype=obj -o %t %s
# RUN: elf-dump --dump-section-data < %t | FileCheck %s
.section test1
.byte 1
.section test2
.byte 2
.previous
.byte 1
.section test2
.byte 2
.previous
.byte 1
.section test1
.byte 1
.previous
.byte 1
.section test2
.byte 2
.pushsection test3
.byte 3
.pushsection test4
.byte 4
.pushsection test5
.byte 5
.popsection
.byte 4
.popsection
.byte 3
.popsection
.byte 2
.pushsection test3
.byte 3
.pushsection test4
.byte 4
.previous
.byte 3
.popsection
.byte 3
.previous
.byte 2
.section test1
.byte 1
.popsection
.byte 2
.previous
.byte 1
.previous
# CHECK:       (('sh_name', 0x00000044) # 'test1'
# CHECK-NEXT:   ('sh_type', 0x00000001)
# CHECK-NEXT:   ('sh_flags', 0x00000000)
# CHECK-NEXT:   ('sh_addr', 0x00000000)
# CHECK-NEXT:   ('sh_offset', 0x00000034)
# CHECK-NEXT:   ('sh_size', 0x00000007)
# CHECK-NEXT:   ('sh_link', 0x00000000)
# CHECK-NEXT:   ('sh_info', 0x00000000)
# CHECK-NEXT:   ('sh_addralign', 0x00000001)
# CHECK-NEXT:   ('sh_entsize', 0x00000000)
# CHECK-NEXT:   ('_section_data', '01010101 010101')
# CHECK-NEXT:  ),
# CHECK:       (('sh_name', 0x0000003e) # 'test2'
# CHECK-NEXT:   ('sh_type', 0x00000001)
# CHECK-NEXT:   ('sh_flags', 0x00000000)
# CHECK-NEXT:   ('sh_addr', 0x00000000)
# CHECK-NEXT:   ('sh_offset', 0x0000003b)
# CHECK-NEXT:   ('sh_size', 0x00000006)
# CHECK-NEXT:   ('sh_link', 0x00000000)
# CHECK-NEXT:   ('sh_info', 0x00000000)
# CHECK-NEXT:   ('sh_addralign', 0x00000001)
# CHECK-NEXT:   ('sh_entsize', 0x00000000)
# CHECK-NEXT:   ('_section_data', '02020202 0202')
# CHECK-NEXT:  ),
# CHECK:       (('sh_name', 0x00000038) # 'test3'
# CHECK-NEXT:   ('sh_type', 0x00000001)
# CHECK-NEXT:   ('sh_flags', 0x00000000)
# CHECK-NEXT:   ('sh_addr', 0x00000000)
# CHECK-NEXT:   ('sh_offset', 0x00000041)
# CHECK-NEXT:   ('sh_size', 0x00000005)
# CHECK-NEXT:   ('sh_link', 0x00000000)
# CHECK-NEXT:   ('sh_info', 0x00000000)
# CHECK-NEXT:   ('sh_addralign', 0x00000001)
# CHECK-NEXT:   ('sh_entsize', 0x00000000)
# CHECK-NEXT:   ('_section_data', '03030303 03')
# CHECK-NEXT:  ),
# CHECK:       (('sh_name', 0x00000032) # 'test4'
# CHECK-NEXT:   ('sh_type', 0x00000001)
# CHECK-NEXT:   ('sh_flags', 0x00000000)
# CHECK-NEXT:   ('sh_addr', 0x00000000)
# CHECK-NEXT:   ('sh_offset', 0x00000046)
# CHECK-NEXT:   ('sh_size', 0x00000003)
# CHECK-NEXT:   ('sh_link', 0x00000000)
# CHECK-NEXT:   ('sh_info', 0x00000000)
# CHECK-NEXT:   ('sh_addralign', 0x00000001)
# CHECK-NEXT:   ('sh_entsize', 0x00000000)
# CHECK-NEXT:   ('_section_data', '040404')
# CHECK-NEXT:  ),
# CHECK:       (('sh_name', 0x0000002c) # 'test5'
# CHECK-NEXT:   ('sh_type', 0x00000001)
# CHECK-NEXT:   ('sh_flags', 0x00000000)
# CHECK-NEXT:   ('sh_addr', 0x00000000)
# CHECK-NEXT:   ('sh_offset', 0x00000049)
# CHECK-NEXT:   ('sh_size', 0x00000001)
# CHECK-NEXT:   ('sh_link', 0x00000000)
# CHECK-NEXT:   ('sh_info', 0x00000000)
# CHECK-NEXT:   ('sh_addralign', 0x00000001)
# CHECK-NEXT:   ('sh_entsize', 0x00000000)
# CHECK-NEXT:   ('_section_data', '05')
# CHECK-NEXT:  ),