mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
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:
parent
0e36cb3ac4
commit
e75ffde09e
4528 changed files with 7776 additions and 11640 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue