summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/note-2-64.s
blob: 02b84e43710940f864f3098720bd486b2ebac56b (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
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
	.text
	.org 0x100
	.global note1.s
note1.s:
	.dc.l 0
	
	.pushsection .gnu.build.attributes, "0x100000", %note
	.balign 4
	.dc.l 4
	.dc.l 8
	.dc.l 0x100
	.asciz "$1"
	.8byte 0x100

	.dc.l 12
	.dc.l 0
	.dc.l 0x100
	.asciz "$gcc 7.0.1"

	.dc.l 3
	.dc.l 0
	.dc.l 0x100
	.dc.b 0x2b, 0x2, 0
	.dc.b 0

	.dc.l 4
	.dc.l 0
	.dc.l 0x100
	.dc.b 0x2a, 0x7, 0, 0

	.dc.l 4
	.dc.l 0
	.dc.l 0x100
	.dc.b 0x2a, 0x6, 0, 0
	.popsection


	.global note2.s
note2.s:
	.global func1
	.type func1, STT_FUNC
func1:	
	.dc.l 0x100

	.pushsection .gnu.build.attributes, "0x100000", %note
	.dc.l 4 	
	.dc.l 8		
	.dc.l 0x100	
	.asciz "$1"	
	.8byte 0x104	

	.dc.l 12 	
	.dc.l 0		
	.dc.l 0x100	
	.asciz "$gcc 7.0.1"	

	.dc.l 3		
	.dc.l 0		
	.dc.l 0x100	
	.dc.b 0x21, 0x2, 0
	.dc.b 0 	

	.dc.l 4
	.dc.l 8	
	.dc.l 0x101	
	.dc.b 0x2a, 0x7, 1, 0
	.8byte 0x104	

	.dc.l 4
	.dc.l 0		
	.dc.l 0x100	
	.dc.b 0x2a, 0x6, 0, 0
	.popsection
	

	.global note3.s
note3.s:
	.dc.l 0x100
	
	.pushsection .gnu.build.attributes, "0x100000", %note
	.dc.l 4 	
	.dc.l 8		
	.dc.l 0x100	
	.asciz "$1"	
	.8byte 0x108

	.dc.l 12 	
	.dc.l 0		
	.dc.l 0x100	
	.asciz "$gcc 7.0.1"	

	.popsection