123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #include <features.h>
- .text
- .global _start
- .type _start,%function
- #if defined(__UCLIBC_CTOR_DTOR__)
- .type _init,%function
- .type _fini,%function
- #else
- .weak _init
- .weak _fini
- #endif
- .type __uClibc_main,%function
- .type main,%function
- _start:
-
- xorl %ebp, %ebp
-
- movq %rdx, %r9
- popq %rsi
- movq %rsp, %rdx
-
- andq $~15, %rsp
- pushq %rax
-
- pushq %rsp
- #if defined(L_Scrt1)
-
- movq main@GOTPCREL(%rip), %rdi
-
- movq _init@GOTPCREL(%rip), %rcx
- movq _fini@GOTPCREL(%rip), %r8
-
- call __uClibc_main@PLT
- #else
-
- movq $main, %rdi
-
- movq $_init, %rcx
- movq $_fini, %r8
-
- call __uClibc_main
- #endif
- hlt
- .size _start,.-_start
- .data
- .global __data_start
- __data_start:
- .long 0
- .weak data_start
- data_start = __data_start
|