Fix bugs in cosmocc toolchain

This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from
https://github.com/ahgamut/musl-cross-make/ which fixes the issues we
were having with our C language extension for symbolic constants. This
change also performs some code cleanup and bug fixes to getaddrinfo().
It's now possible to compile projects like ncurses, readline and python
without needing to patch anything upstream, except maybe a line or two.
Pretty soon it should be possible to build a Linux distro on Cosmo.
This commit is contained in:
Justine Tunney 2023-06-08 23:44:03 -07:00
parent 22f81a8d50
commit 23e235b7a5
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
272 changed files with 3491 additions and 4350 deletions

View file

@ -22,7 +22,7 @@
// Decentralized section for benchmark registration.
//
// @see ape/ape.lds
.section .piro.relo.sort.bench.1,"aw",@nobits
.section .piro.relo.sort.bench.1,"aw",@progbits
.type __bench_start,@object
.type __bench_end,@object
.globl __bench_start,__bench_end
@ -35,7 +35,7 @@ __bench_start:
...
decentralized content
...
*/.section .piro.relo.sort.bench.3,"aw",@nobits
*/.section .piro.relo.sort.bench.3,"aw",@progbits
__bench_end:
.quad 0
.overrun

View file

@ -21,7 +21,7 @@
// Decentralized section for test combo registration.
//
// @see ape/ape.lds
.section .piro.relo.sort.combo.1,"aw",@nobits
.section .piro.relo.sort.combo.1,"aw",@progbits
.type __combo_start,@object
.type __combo_end,@object
.globl __combo_start,__combo_end
@ -34,7 +34,7 @@ __combo_start:
...
decentralized content
...
*/.section .piro.relo.sort.combo.3,"aw",@nobits
*/.section .piro.relo.sort.combo.3,"aw",@progbits
__combo_end:
.quad 0
.overrun

View file

@ -21,7 +21,7 @@
// Decentralized section for test fixture registration.
//
// @see ape/ape.lds
.section .piro.relo.sort.fixture.1,"aw",@nobits
.section .piro.relo.sort.fixture.1,"aw",@progbits
.type __fixture_start,@object
.type __fixture_end,@object
.globl __fixture_start,__fixture_end
@ -34,7 +34,7 @@ __fixture_start:
...
decentralized content
...
*/.section .piro.relo.sort.fixture.3,"aw",@nobits
*/.section .piro.relo.sort.fixture.3,"aw",@progbits
__fixture_end:
.quad 0
.overrun

View file

@ -21,7 +21,7 @@
// Decentralized section for test testcase registration.
//
// @see ape/ape.lds
.section .piro.relo.sort.testcase.1,"aw",@nobits
.section .piro.relo.sort.testcase.1,"aw",@progbits
.type __testcase_start,@object
.type __testcase_end,@object
.globl __testcase_start,__testcase_end
@ -34,7 +34,7 @@ __testcase_start:
...
decentralized content
...
*/.section .piro.relo.sort.testcase.3,"aw",@nobits
*/.section .piro.relo.sort.testcase.3,"aw",@progbits
__testcase_end:
.quad 0
.overrun