Make fatcosmocc good enough to build ncurses 6.4

This commit is contained in:
Justine Tunney 2023-08-12 22:30:05 -07:00
parent 399d14aadf
commit 3f2f0e3a74
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
20 changed files with 295 additions and 139 deletions

View file

@ -113,6 +113,12 @@ _start:
call cosmo
9: .unreachable
// strongly link main() function (discarded by linker)
// libc_runtime had to weakly link, due to package.com
.section .yoink
call main
.previous
////////////////////////////////////////////////////////////////////////////////
#elif defined(__aarch64__)
@ -140,6 +146,12 @@ _start:
bl cosmo
.unreachable
// strongly link main() function (discarded by linker)
// libc_runtime had to weakly link, due to package.com
.section .yoink
bl main
.previous
////////////////////////////////////////////////////////////////////////////////
#else
#error "architecture unsupported"