mailing list of musl libc
 help / color / mirror / code / Atom feed
ba34e95ed2120c02ae4c05785a1284cc34f299e7 blob 633 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
/* Written 2011 Nicholas J. Kain, released as Public Domain */
.weak _init
.weak _fini
.text
.global _start
_start:
	xor %rbp,%rbp   /* rbp:undefined -> mark as zero 0 (ABI) */
	mov %rdx,%r9    /* 6th arg: ptr to register with atexit() */
	pop %rsi        /* 2nd arg: argc */
	mov %rsp,%rdx   /* 3rd arg: argv */
	andq $-16,%rsp  /* align stack pointer */
	lea _fini(%rip),%r8           /* 5th arg: fini/dtors function */
	lea _init(%rip),%rcx          /* 4th arg: init/ctors function */
	mov main@GOTPCREL(%rip),%rdi  /* 1st arg: application entry ip */
	call __libc_start_main@PLT    /* musl init will run the program */
1:	jmp 1b
debug log:

solving ba34e95 ...
found ba34e95 in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).