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:
2
third_party/compiler_rt/comprt.S
vendored
2
third_party/compiler_rt/comprt.S
vendored
@ -1,6 +1,6 @@
|
||||
#include "libc/macros.h"
|
||||
|
||||
/ Nop ref this to force pull the license into linkage.
|
||||
// Nop ref this to force pull the license into linkage.
|
||||
.section .yoink
|
||||
huge_compiler_rt_license:
|
||||
int3
|
||||
|
||||
2
third_party/compiler_rt/nexgen32e/chkstk.S
vendored
2
third_party/compiler_rt/nexgen32e/chkstk.S
vendored
@ -15,7 +15,7 @@
|
||||
#ifdef __x86_64__
|
||||
|
||||
.section .yoink
|
||||
nop huge_compiler_rt_license
|
||||
nopl huge_compiler_rt_license(%rip)
|
||||
.previous
|
||||
|
||||
.text
|
||||
|
||||
2
third_party/compiler_rt/nexgen32e/chkstk2.S
vendored
2
third_party/compiler_rt/nexgen32e/chkstk2.S
vendored
@ -6,7 +6,7 @@
|
||||
#ifdef __x86_64__
|
||||
|
||||
.section .yoink
|
||||
nop huge_compiler_rt_license
|
||||
nopl huge_compiler_rt_license(%rip)
|
||||
.previous
|
||||
|
||||
// _chkstk (_alloca) routine - probe stack between %rsp and (%rsp-%rax) in 4k increments,
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
#ifdef __x86_64__
|
||||
|
||||
.section .yoink
|
||||
nop huge_compiler_rt_license
|
||||
nopl huge_compiler_rt_license(%rip)
|
||||
.previous
|
||||
|
||||
CONST_SECTION
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifdef __x86_64__
|
||||
|
||||
.section .yoink
|
||||
nop huge_compiler_rt_license
|
||||
nopl huge_compiler_rt_license(%rip)
|
||||
.previous
|
||||
|
||||
CONST_SECTION
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#ifdef __x86_64__
|
||||
|
||||
.section .yoink
|
||||
nop huge_compiler_rt_license
|
||||
nopl huge_compiler_rt_license(%rip)
|
||||
.previous
|
||||
|
||||
CONST_SECTION
|
||||
|
||||
Reference in New Issue
Block a user