|
Last change
on this file was 607, checked in by bird, 22 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
414 bytes
|
| Line | |
|---|
| 1 | .text
|
|---|
| 2 | .globl _start, foo
|
|---|
| 3 | .type _start,@function
|
|---|
| 4 | _start:
|
|---|
| 5 | pushl %ebp
|
|---|
| 6 | movl %esp, %ebp
|
|---|
| 7 | pushl %ebx
|
|---|
| 8 | call 1f
|
|---|
| 9 | 1: popl %ebx
|
|---|
| 10 | addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
|
|---|
| 11 | movl _start@GOT(%ebx), %eax
|
|---|
| 12 | movl (%eax), %eax
|
|---|
| 13 | call foo@PLT
|
|---|
| 14 | movl (%esp), %ebx
|
|---|
| 15 | leave
|
|---|
| 16 | foo: ret
|
|---|
| 17 | .data
|
|---|
| 18 | .long _start
|
|---|
| 19 | .section "__libc_subfreeres", "aw", @progbits
|
|---|
| 20 | .long _start
|
|---|
| 21 | .section "__libc_atexit", "aw", @progbits
|
|---|
| 22 | .long _start
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.