~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/runtime/cgo/gcc_386.S

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        popl %ebp
36
36
        ret
37
37
 
38
 
/*
39
 
 * void crosscall2(void (*fn)(void*, int32), void*, int32)
40
 
 *
41
 
 * Save registers and call fn with two arguments.
42
 
 */
43
 
.globl EXT(crosscall2)
44
 
EXT(crosscall2):
45
 
        pushl %ebp
46
 
        movl %esp, %ebp
47
 
        pushl %ebx
48
 
        pushl %esi
49
 
        pushl %edi
50
 
 
51
 
        pushl 16(%ebp)
52
 
        pushl 12(%ebp)
53
 
        mov 8(%ebp), %eax
54
 
        call *%eax
55
 
        addl $8,%esp
56
 
 
57
 
        popl %edi
58
 
        popl %esi
59
 
        popl %ebx
60
 
        popl %ebp
61
 
        ret
62
 
 
63
38
.globl EXT(__stack_chk_fail_local)
64
39
EXT(__stack_chk_fail_local):
65
40
1:
66
41
        jmp 1b
67
42
 
 
43
#ifdef __ELF__
 
44
.section .note.GNU-stack,"",@progbits
 
45
#endif