Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1109)

Delta Between Two Patch Sets: src/pkg/runtime/rt0_linux_amd64.s

Issue 9738047: code review 9738047: runtime: Add shared library support (linux/amd64)
Left Patch Set: diff -r 41702da0dcc4 https://go.googlecode.com/hg/ Created 10 years, 10 months ago
Right Patch Set: diff -r 3833ddddde2b1a2741a396c4e965b04d525a133b https://go.googlecode.com/hg/ Created 10 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/proc.c ('k') | src/pkg/runtime/rt0_linux_arm.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 TEXT _rt0_amd64_linux(SB),7,$-8 5 #include "../../cmd/ld/textflag.h"
6
7 TEXT _rt0_amd64_linux(SB),NOSPLIT,$-8
6 LEAQ 8(SP), SI // argv 8 LEAQ 8(SP), SI // argv
7 MOVQ 0(SP), DI // argc 9 MOVQ 0(SP), DI // argc
8 MOVQ $main(SB), AX 10 MOVQ $main(SB), AX
9 JMP AX 11 JMP AX
10 12
11 TEXT main(SB),7,$-8 13 TEXT main(SB),NOSPLIT,$-8
12 » MOVQ» $_rt0_amd64(SB), AX 14 » MOVQ» $_rt0_go(SB), AX
13 JMP AX 15 JMP AX
14 16
15 TEXT _rt0_amd64_linux_lib(SB),7,$-8 17 TEXT _rt0_amd64_linux_lib(SB),NOSPLIT,$0
16 » MOVB» $1, runtime·islibrary(SB) 18 » MOVQ $_rt0_go(SB), DI
17 19 » MOVQ _cgo_lib_setup(SB), AX
18 » MOVQ $_rt0_amd64(SB),DI
19 » MOVQ _cgo_lib_init(SB),AX
20 CALL AX 20 CALL AX
21 RET 21 RET
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b