Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-05-28 07:01:35 +00:00
Code Issues Projects Releases Wiki Activity
musl/crt/arm/crt1.s

14 lines
181 B
ArmAsm
Raw Normal View History

initial commit of the arm port this port assumes eabi calling conventions, eabi linux syscall convention, and presence of the kernel helpers at 0xffff0f?0 needed for threads support. otherwise it makes very few assumptions, and the code should work even on armv4 without thumb support, as well as on systems with thumb interworking. the bits headers declare this a little endian system, but as far as i can tell the code should work equally well on big endian. some small details are probably broken; so far, testing has been limited to qemu/aboriginal linux.
2011-09-18 16:44:54 -04:00
.global _start
_start:
mov fp,#0
mov lr,#0
ldr a2,[sp],#4
mov a3,sp
mov a4,#0
str fp,[sp,#-4]!
str a1,[sp,#-4]!
str fp,[sp,#-4]!
ldr a1,=main
bl __libc_start_main
1: b 1b
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 83ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API