aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/mbind1.s
blob: 414b9feb1aea7bfdad9e4a4960e8fd9658b48c28 (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
37
38
39
40
41
42
43
	.text
	.global start	/* Used by SH targets.  */
start:
	.global _start
_start:
	.global __start
__start:
	.global main	/* Used by HPPA targets.  */
main:
	.dc.a 0
	.section .mbind.data,"adw",%progbits
	.byte 1

	.section .mbind.data,"adw",%progbits,0x3
	.byte 2

	.section .mbind.text,"adx",%progbits
	.byte 3

	.section .mbind.text,"adx",%progbits,0x3
	.byte 4

	.section .mbind.bss,"adw",%nobits
	.zero 5

	.section .mbind.bss,"adw",%nobits,0x3
	.zero 6

	.section .mbind.rodata,"adG",%progbits,.foo_group,comdat,0x2
	.byte 7

	.section .mbind.data,"adGw",%progbits,.foo_group,comdat
	.byte 8

	.section .mbind.data,"adGw",%progbits,.foo_group,comdat,0x3
	.byte 9

	# Check that .pushsection works as well.
	.pushsection .mbind.text,"adGx",%progbits,.foo_group,comdat,0x3
	.byte 10

	.popsection
	.byte 11