File: pr21481b.S

package info (click to toggle)
binutils-m68hc1x 1%3A2.35.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 335,580 kB
  • sloc: ansic: 1,187,755; asm: 674,290; cpp: 130,744; exp: 70,774; makefile: 56,048; sh: 22,128; yacc: 14,459; lisp: 13,803; perl: 2,112; ada: 1,681; lex: 1,649; pascal: 1,446; cs: 879; sed: 195; xml: 95; awk: 25
file content (60 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (12)
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
	.section .rodata.foo,"aMS",@progbits,1,unique,1
.LC0:
	.string	"PASS"
	.text
	.globl	check
	.type	check, @function
check:
	subq	$8, %rsp
	call	*get_func1@GOTPCREL(%rip)
	cmpl	$func1, %eax
	jne	.L3
	movq	func1_p@GOTPCREL(%rip), %rdx
#ifdef __LP64__
	cmpq	%rax, (%rdx)
#else
	cmpl	%eax, (%rdx)
#endif
	jne	.L3
	call	*func1@GOTPCREL(%rip)
	cmpl	$1, %eax
	jne	.L3
	call	*call_func1@GOTPCREL(%rip)
	cmpl	$1, %eax
	jne	.L3
	leaq	.LC0(%rip), %rdi
	addq	$8, %rsp
	jmp	*puts@GOTPCREL(%rip)
.L3:
	call	*abort@GOTPCREL(%rip)
	.size	check, .-check
	.globl	get_func1
	.type	get_func1, @function
get_func1:
	movq	func1@GOTPCREL(%rip), %rax
	ret
	.size	get_func1, .-get_func1
	.globl	call_func1
	.type	call_func1, @function
call_func1:
	jmp	*func1@GOTPCREL(%rip)
	.size	call_func1, .-call_func1
	.globl	func1_p
	.section .rodata.foo,"a",@progbits,unique,2
	.align 8
	.size	func1_p, 8
	.type	func1_p, @object
func1_p:
	.dc.a	func1
	.text
implementation1:
	movl	$1, %eax
	ret
	.size	implementation1, .-implementation1
	.globl	func1
	.type	func1, @gnu_indirect_function
func1:
	leaq	implementation1(%rip), %rax
	ret
	.size	func1, .-func1
	.section	.note.GNU-stack,"",@progbits