Get codebase completely working with LLVM
You can now build Cosmopolitan with Clang:
make -j8 MODE=llvm
o/llvm/examples/hello.com
The assembler and linker code is now friendly to LLVM too.
So it's not needed to configure Clang to use binutils under
the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
#include "libc/notice.inc"
|
||||
.source __FILE__
|
||||
|
||||
/ Allocates n * itemsize bytes, initialized to zero.
|
||||
/
|
||||
/ @param rdi is number of items (n)
|
||||
/ @param rsi is size of each item (itemsize)
|
||||
/ @return rax is memory address, or NULL w/ errno
|
||||
/ @note overreliance on memalign is a sure way to fragment space
|
||||
/ @see dlcalloc()
|
||||
// Allocates n * itemsize bytes, initialized to zero.
|
||||
//
|
||||
// @param rdi is number of items (n)
|
||||
// @param rsi is size of each item (itemsize)
|
||||
// @return rax is memory address, or NULL w/ errno
|
||||
// @note overreliance on memalign is a sure way to fragment space
|
||||
// @see dlcalloc()
|
||||
calloc: jmp *hook_calloc(%rip)
|
||||
.endfn calloc,globl
|
||||
|
||||
Reference in New Issue
Block a user