summaryrefslogtreecommitdiff
path: root/src/util/fipstools/delocate/testdata/x86_64-Sections/in.s
blob: 8358a4c530a899d92d4fc5b904d8d153de8bbfec (plain)
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
	# .text stays in .text
	.text
	movq %rax, %rax

	# -ffunction-sections is undone.
	.section .text.foo,"ax",@progbits
	.globl foo
foo:
	ret

	# .rodata is moved to .text.
	.section .rodata
	.long 42
	.string "Hello world, esc\ape characters are \"fun\"\\"

	# Compilers sometimes emit extra rodata sections.
	.section .rodata.str1.1,"aMS",@progbits,1
	.string "NIST P-256"
	.text

	# A number of sections are left alone.
	.section	.init_array,"aw"
	.align 8
	.quad	foo
	.section	.rodata
	.align 16
	.section	.debug_info,"",@progbits
.Ldebug_info0:
	.long	0x1b35e
	.value	0x4
	.long	.L1
	.byte	0x8
	.uleb128 0x1
	.long	.L2
	.byte	0x1
	.long	.L3