File: gcrt1.s

package info (click to toggle)
libc-sparc 5.3.12-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 18,664 kB
  • ctags: 53,237
  • sloc: ansic: 181,379; asm: 5,080; makefile: 3,340; lex: 521; sh: 439; yacc: 401; awk: 28
file content (57 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (2)
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
	.file	"gcrt1.c"
	.version	"01.01"
gcc2_compiled.:
	.global __data_start
.section	".data"
	.align 4
	.type	 __data_start,#object
	.size	 __data_start,4
__data_start:
	.word	0
.section	".text"
	.align 4
	.global _start
	.type	 _start,#function
	.proc	020
_start:
	!#PROLOGUE# 0
	save %sp,-104,%sp
	!#PROLOGUE# 1
	restore
	mov 0,%fp
	ld [%sp+64],%l1
	add %sp,68,%l2
	sll %l1,2,%l0
	add %l0,4,%l0
	add %l2,%l0,%l0
	sethi %hi(__environ),%o0
	st %l0,[%o0+%lo(__environ)]
	sethi %hi(_mcleanup),%o0
	call atexit,0
	or %o0,%lo(_mcleanup),%o0
	sethi %hi(_etext),%o0
	or %o0,%lo(_etext),%o0
	sethi %hi(_start),%o1
	call monstartup,0
	or %o1,%lo(_start),%o1
	add %sp,-24,%sp
	mov %l1,%o0
	mov %l2,%o1
	call __libc_init,0
	mov %l0,%o2
	sethi %hi(_fini),%o0
	call atexit,0
	or %o0,%lo(_fini),%o0
	call _init,0
	nop
	mov %l1,%o0
	mov %l2,%o1
	call main,0
	mov %l0,%o2
	call exit,0
	nop
	ret
	restore
.LLfe1:
	.size	 _start,.LLfe1-_start
	.ident	"GCC: (GNU) 2.7.2.3"