123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- .file "crt1.c"
- #APP
- .ident "$FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4.20.1 2007/12/06 13:43:43 kib Exp $"
- #NO_APP
- .section .note.ABI-tag,"a",@progbits
- .align 4
- .type abitag, @object
- .size abitag, 24
- abitag:
- .long 8
- .long 4
- .long 1
- .string "FreeBSD"
- .long 700055
- .globl __progname
- .section .rodata
- .LC0:
- .string ""
- .data
- .align 8
- .type __progname, @object
- .size __progname, 8
- __progname:
- .quad .LC0
- .text
- .p2align 4,,15
- .globl _start
- .type _start, @function
- _start:
- .LFB5:
- pushq %rbp
- .LCFI0:
- movq %rsp, %rbp
- .LCFI1:
- subq $48, %rsp
- .LCFI2:
- movq %rdi, -40(%rbp)
- movq %rsi, -48(%rbp)
- movq -40(%rbp), %rax
- movq (%rax), %rax
- movl %eax, -28(%rbp)
- movl %eax, operatingsystem_parameter_argc(%rip)
- movq -40(%rbp), %rax
- addq $8, %rax
- movq %rax, -24(%rbp)
- movq %rax, operatingsystem_parameter_argv(%rip)
- movq -40(%rbp), %rdx
- addq $16, %rdx
- movl -28(%rbp), %eax
- cltq
- salq $3, %rax
- leaq (%rdx,%rax), %rax
- movq %rax, -16(%rbp)
- movq -16(%rbp), %rax
- movq %rax, operatingsystem_parameter_envp(%rip)
- movq %rax, environ(%rip)
- cmpl $0, -28(%rbp)
- jle .L2
- movq -24(%rbp), %rax
- movq (%rax), %rax
- testq %rax, %rax
- je .L2
- movq -24(%rbp), %rax
- movq (%rax), %rax
- movq %rax, __progname(%rip)
- movq __progname(%rip), %rax
- movq %rax, -8(%rbp)
- jmp .L5
- .L6:
- movq -8(%rbp), %rax
- movzbl (%rax), %eax
- cmpb $47, %al
- jne .L7
- movq -8(%rbp), %rax
- addq $1, %rax
- movq %rax, __progname(%rip)
- .L7:
- addq $1, -8(%rbp)
- .L5:
- movq -8(%rbp), %rax
- movzbl (%rax), %eax
- testb %al, %al
- jne .L6
- .L2:
- movl $_DYNAMIC, %eax
- testq %rax, %rax
- je .L9
- movq -48(%rbp), %rdi
- call atexit
- jmp .L11
- .L9:
- call _init_tls
- .L11:
- movl $_fini, %edi
- call atexit
- call _init
- # movq -16(%rbp), %rdx
- # movq -24(%rbp), %rsi
- # movl -28(%rbp), %edi
- xorq %rbp,%rbp
- call main
- movl %eax, %edi
- call exit
- .LFE5:
- .size _start, .-_start
- #APP
- .ident "$FreeBSD: src/lib/csu/amd64/crt1.c,v 1.15 2005/10/07 22:13:17 bde Exp $"
- #NO_APP
- .bss
- .type __stkptr,@object
- .size __stkptr,8
- .global __stkptr
- __stkptr:
- .skip 8
- .type operatingsystem_parameters,@object
- .size operatingsystem_parameters,24
- operatingsystem_parameters:
- .skip 3*8
- .global operatingsystem_parameter_envp
- .global operatingsystem_parameter_argc
- .global operatingsystem_parameter_argv
- .set operatingsystem_parameter_envp,operatingsystem_parameters+0
- .set operatingsystem_parameter_argc,operatingsystem_parameters+8
- .set operatingsystem_parameter_argv,operatingsystem_parameters+16
- .comm environ,8,8
- .weak _DYNAMIC
- .section .eh_frame,"a",@progbits
- .Lframe1:
- .long .LECIE1-.LSCIE1
- .LSCIE1:
- .long 0x0
- .byte 0x1
- .string "zR"
- .uleb128 0x1
- .sleb128 -8
- .byte 0x10
- .uleb128 0x1
- .byte 0x3
- .byte 0xc
- .uleb128 0x7
- .uleb128 0x8
- .byte 0x90
- .uleb128 0x1
- .align 8
- .LECIE1:
- .LSFDE1:
- .long .LEFDE1-.LASFDE1
- .LASFDE1:
- .long .LASFDE1-.Lframe1
- .long .LFB5
- .long .LFE5-.LFB5
- .uleb128 0x0
- .byte 0x4
- .long .LCFI0-.LFB5
- .byte 0xe
- .uleb128 0x10
- .byte 0x86
- .uleb128 0x2
- .byte 0x4
- .long .LCFI1-.LCFI0
- .byte 0xd
- .uleb128 0x6
- .align 8
- .LEFDE1:
- .ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]"
|