Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: fusl/arch/i386/crt_arch.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/arch/i386/bits/user.h ('k') | fusl/arch/i386/pthread_arch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/arch/i386/crt_arch.h
diff --git a/fusl/arch/i386/crt_arch.h b/fusl/arch/i386/crt_arch.h
new file mode 100644
index 0000000000000000000000000000000000000000..43c8477a8174311f81d3391fbe11e71ae4136007
--- /dev/null
+++ b/fusl/arch/i386/crt_arch.h
@@ -0,0 +1,16 @@
+__asm__(
+".text\n"
+".weak _DYNAMIC \n"
+".hidden _DYNAMIC \n"
+".global " START "\n"
+START ":\n"
+" xor %ebp,%ebp \n"
+" mov %esp,%eax \n"
+" and $-16,%esp \n"
+" push %eax \n"
+" push %eax \n"
+" call 1f \n"
+"1: addl $_DYNAMIC-1b,(%esp) \n"
+" push %eax \n"
+" call " START "_c \n"
+);
« no previous file with comments | « fusl/arch/i386/bits/user.h ('k') | fusl/arch/i386/pthread_arch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698