cosmopolitan/libc/elf
Justine Tunney 0c630d95b5
Rewrite Cosmopolitan Ar
The build/bootstrap/ar.com program is now tinier. This change reduces
its size from 140kb to 53kb. Nothing was traded away. Cosmopolitan Ar
performance is now 2x better than llvm-ar largely thanks to using the
copy_file_range() system call. This change homebrews a new allocation
API that addresses the shortcomings of the C standard library design.
Using these new balloc() and reballoc() functions I managed to reduce
memory consumption so much that Cosmpolitan Ar should now use roughly
100x fewer bytes of peak resident memory compared to llvm-ar. Correct
behavior with better compatibility has been assured. Binary output is
now pretty much bit-identical to llvm-ar, as of this change. This can
and should be the living proof we need to show that a better world is
possible for software.
2023-07-02 10:19:16 -07:00
..
struct Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
def.h Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
elf.h Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
elf.mk Clean up more code 2023-06-18 01:00:05 -07:00
getelfprogramheaderaddress.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfsectionaddress.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfsectionheaderaddress.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfsectionname.c Rewrite .zip.o file linker 2023-06-10 09:29:44 -07:00
getelfsectionnamestringtable.c Clean up more code 2023-06-18 01:00:05 -07:00
getelfstring.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfstringtable.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfsymbols.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
getelfsymboltable.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
iself64binary.c Clean up more code 2023-06-18 01:00:05 -07:00
iselfsymbolcontent.c Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00
pf2prot.internal.h Improve signals and memory protection 2022-04-12 22:11:00 -07:00
scalar.h Clean up more code 2023-06-18 01:00:05 -07:00
tinyelf.internal.h Rewrite Cosmopolitan Ar 2023-07-02 10:19:16 -07:00