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:
Justine Tunney 2021-02-08 09:19:00 -08:00
parent 0e36cb3ac4
commit e75ffde09e
4528 changed files with 7776 additions and 11640 deletions

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_1 0x020000 14 14 13 13 0
.syscon misc,ABDAY_1,0x020000,14,14,13,13,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_2 0x020001 15 15 14 14 0
.syscon misc,ABDAY_2,0x020001,15,15,14,14,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_3 0x020002 0x10 0x10 15 15 0
.syscon misc,ABDAY_3,0x020002,0x10,0x10,15,15,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_4 0x020003 17 17 0x10 0x10 0
.syscon misc,ABDAY_4,0x020003,17,17,0x10,0x10,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_5 0x020004 18 18 17 17 0
.syscon misc,ABDAY_5,0x020004,18,18,17,17,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_6 0x020005 19 19 18 18 0
.syscon misc,ABDAY_6,0x020005,19,19,18,18,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABDAY_7 0x020006 20 20 19 19 0
.syscon misc,ABDAY_7,0x020006,20,20,19,19,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ABORTED_COMMAND 11 0 0 0 0 0
.syscon misc,ABORTED_COMMAND,11,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ACCOUNTING 9 9 0 0 0 0
.syscon misc,ACCOUNTING,9,9,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ACCT_BYTEORDER 0 0 0 0 0 0
.syscon misc,ACCT_BYTEORDER,0,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ACCT_COMM 0x10 0 0 0 0 0
.syscon misc,ACCT_COMM,0x10,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ACK 4 4 4 4 4 0
.syscon misc,ACK,4,4,4,4,4,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ACORE 0 8 8 8 8 0
.syscon misc,ACORE,0,8,8,8,8,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon prsnlty ADDR_COMPAT_LAYOUT 0x0200000 -1 -1 -1 -1 -1
.syscon prsnlty,ADDR_COMPAT_LAYOUT,0x0200000,-1,-1,-1,-1,-1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon prsnlty ADDR_LIMIT_32BIT 0x0800000 -1 -1 -1 -1 -1
.syscon prsnlty,ADDR_LIMIT_32BIT,0x0800000,-1,-1,-1,-1,-1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon prsnlty ADDR_LIMIT_3GB 0x8000000 -1 -1 -1 -1 -1
.syscon prsnlty,ADDR_LIMIT_3GB,0x8000000,-1,-1,-1,-1,-1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon prsnlty ADDR_NO_RANDOMIZE 0x0040000 -1 -1 -1 -1 -1
.syscon prsnlty,ADDR_NO_RANDOMIZE,0x0040000,-1,-1,-1,-1,-1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AFORK 0 1 1 1 1 0
.syscon misc,AFORK,0,1,1,1,1,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ALG 38 0 0 0 0 0
.syscon af,AF_ALG,38,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_APPLETALK 5 0x10 0x10 0x10 0x10 0x10
.syscon af,AF_APPLETALK,5,0x10,0x10,0x10,0x10,0x10

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ASH 18 0 0 0 0 0
.syscon af,AF_ASH,18,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ATMPVC 8 0 0 0 0 0
.syscon af,AF_ATMPVC,8,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ATMSVC 20 0 0 0 0 0
.syscon af,AF_ATMSVC,20,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_AX25 3 0 0 0 0 0
.syscon af,AF_AX25,3,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_BLUETOOTH 31 0 36 0x20 31 0
.syscon af,AF_BLUETOOTH,31,0,36,0x20,31,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_BRIDGE 7 0 0 0 0 0
.syscon af,AF_BRIDGE,7,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_CAIF 37 0 0 0 0 0
.syscon af,AF_CAIF,37,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_CAN 29 0 0 0 35 0
.syscon af,AF_CAN,29,0,0,0,35,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ECONET 19 0 0 0 0 0
.syscon af,AF_ECONET,19,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_FILE 1 0 0 0 0 0
.syscon af,AF_FILE,1,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_IB 27 0 0 0 0 0
.syscon af,AF_IB,27,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_IEEE802154 36 0 0 0 0 0
.syscon af,AF_IEEE802154,36,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_INET 2 2 2 2 2 2
.syscon af,AF_INET,2,2,2,2,2,2

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_INET6 10 30 28 24 24 23
.syscon af,AF_INET6,10,30,28,24,24,23

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_IPX 4 23 23 23 23 0
.syscon af,AF_IPX,4,23,23,23,23,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_IRDA 23 0 0 0 0 0
.syscon af,AF_IRDA,23,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ISDN 34 28 26 26 26 0
.syscon af,AF_ISDN,34,28,26,26,26,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_IUCV 0x20 0 0 0 0 0
.syscon af,AF_IUCV,0x20,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_KCM 41 0 0 0 0 0
.syscon af,AF_KCM,41,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_KEY 15 0 0 30 30 0
.syscon af,AF_KEY,15,0,0,30,30,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_LLC 26 0 0 0 0 0
.syscon af,AF_LLC,26,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_LOCAL 1 1 1 1 1 0
.syscon af,AF_LOCAL,1,1,1,1,1,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_MAX 42 40 42 36 37 35
.syscon af,AF_MAX,42,40,42,36,37,35

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_MPLS 28 0 0 33 33 0
.syscon af,AF_MPLS,28,0,0,33,33,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_NETBEUI 13 0 0 0 0 0
.syscon af,AF_NETBEUI,13,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_NETLINK 16 0 0 0 0 0
.syscon af,AF_NETLINK,16,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_NETROM 6 0 0 0 0 0
.syscon af,AF_NETROM,6,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_NFC 39 0 0 0 0 0
.syscon af,AF_NFC,39,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_PACKET 17 0 0 0 0 0
.syscon af,AF_PACKET,17,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_PHONET 35 0 0 0 0 0
.syscon af,AF_PHONET,35,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_PPPOX 24 0 0 0 0 0
.syscon af,AF_PPPOX,24,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_RDS 21 0 0 0 0 0
.syscon af,AF_RDS,21,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ROSE 11 0 0 0 0 0
.syscon af,AF_ROSE,11,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_ROUTE 16 17 17 17 34 0
.syscon af,AF_ROUTE,16,17,17,17,34,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_RXRPC 33 0 0 0 0 0
.syscon af,AF_RXRPC,33,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_SECURITY 14 0 0 0 0 0
.syscon af,AF_SECURITY,14,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_SNA 22 11 11 11 11 11
.syscon af,AF_SNA,22,11,11,11,11,11

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_TIPC 30 0 0 0 0 0
.syscon af,AF_TIPC,30,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_UNIX 1 1 1 1 1 1
.syscon af,AF_UNIX,1,1,1,1,1,1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_UNSPEC 0 0 0 0 0 0
.syscon af,AF_UNSPEC,0,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_VSOCK 40 0 0 0 0 0
.syscon af,AF_VSOCK,40,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_WANPIPE 25 0 0 0 0 0
.syscon af,AF_WANPIPE,25,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon af AF_X25 9 0 0 0 0 0
.syscon af,AF_X25,9,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AHZ 100 0x40 0 0x40 0x40 0
.syscon misc,AHZ,100,0x40,0,0x40,0x40,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AIO_ALLDONE 2 1 3 0 0 0
.syscon misc,AIO_ALLDONE,2,1,3,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AIO_CANCELED 0 2 1 0 0 0
.syscon misc,AIO_CANCELED,0,2,1,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AIO_NOTCANCELED 1 4 2 0 0 0
.syscon misc,AIO_NOTCANCELED,1,4,2,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_ADDRCONFIG 0x20 0x0400 0x0400 0x40 0x40 0x0400
.syscon gai,AI_ADDRCONFIG,0x20,0x0400,0x0400,0x40,0x40,0x0400

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_ALL 0x10 0x0100 0x0100 0 0 0x0100
.syscon gai,AI_ALL,0x10,0x0100,0x0100,0,0,0x0100

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_CANONNAME 2 2 2 2 2 2
.syscon gai,AI_CANONNAME,2,2,2,2,2,2

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_NUMERICHOST 4 4 4 4 4 4
.syscon gai,AI_NUMERICHOST,4,4,4,4,4,4

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_NUMERICSERV 0x0400 0x1000 8 0x10 0x10 8
.syscon gai,AI_NUMERICSERV,0x0400,0x1000,8,0x10,0x10,8

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_PASSIVE 1 1 1 1 1 1
.syscon gai,AI_PASSIVE,1,1,1,1,1,1

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon gai AI_V4MAPPED 8 0x0800 0x0800 0 0 0x0800
.syscon gai,AI_V4MAPPED,8,0x0800,0x0800,0,0,0x0800

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ALLOW_MEDIUM_REMOVAL 30 0 0 0 0 0
.syscon misc,ALLOW_MEDIUM_REMOVAL,30,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ALT_DIGITS 0x02002f 49 49 0 0 0
.syscon misc,ALT_DIGITS,0x02002f,49,49,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AM_STR 0x020026 5 5 4 4 0
.syscon misc,AM_STR,0x020026,5,5,4,4,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc AREGTYPE 0 0 0 0 0 0
.syscon misc,AREGTYPE,0,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_ETHER 1 1 1 1 1 0
.syscon misc,ARPHRD_ETHER,1,1,1,1,1,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_FCFABRIC 787 0 0 0 0 0
.syscon misc,ARPHRD_FCFABRIC,787,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_IEEE80211 801 0 0 0 0 0
.syscon misc,ARPHRD_IEEE80211,801,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_IEEE80211_PRISM 802 0 0 0 0 0
.syscon misc,ARPHRD_IEEE80211_PRISM,802,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_IEEE80211_RADIOTAP 803 0 0 0 0 0
.syscon misc,ARPHRD_IEEE80211_RADIOTAP,803,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_IEEE802154 804 0 0 0 0 0
.syscon misc,ARPHRD_IEEE802154,804,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_IEEE802_TR 800 0 0 0 0 0
.syscon misc,ARPHRD_IEEE802_TR,800,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ARPHRD_LOCALTLK 773 0 0 0 0 0
.syscon misc,ARPHRD_LOCALTLK,773,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ASU 0 2 2 2 2 0
.syscon misc,ASU,0,2,2,2,2,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon misc ATF_NETMASK 0x20 0 0 0 0 0
.syscon misc,ATF_NETMASK,0x20,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_BASE 7 0 7 0 7 0
.syscon auxv,AT_BASE,7,0,7,0,7,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_BASE_PLATFORM 24 0 0 0 0 0
.syscon auxv,AT_BASE_PLATFORM,24,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_CLKTCK 17 0 0 0 0 0
.syscon auxv,AT_CLKTCK,17,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_DCACHEBSIZE 19 0 0 0 0 0
.syscon auxv,AT_DCACHEBSIZE,19,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon at AT_EACCESS 0x0200 0x10 0x0100 1 0x100 0
.syscon at,AT_EACCESS,0x0200,0x10,0x0100,1,0x100,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_EGID 14 0 0 0 2002 0
.syscon auxv,AT_EGID,14,0,0,0,2002,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon at AT_EMPTY_PATH 0x1000 0 0 0 0 0
.syscon at,AT_EMPTY_PATH,0x1000,0,0,0,0,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_ENTRY 9 0 9 0 9 0
.syscon auxv,AT_ENTRY,9,0,9,0,9,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_EUID 12 0 0 0 2000 0
.syscon auxv,AT_EUID,12,0,0,0,2000,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_EXECFD 2 0 2 0 2 0
.syscon auxv,AT_EXECFD,2,0,2,0,2,0

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon auxv AT_EXECFN 31 31 999 999 2014 999
.syscon auxv,AT_EXECFN,31,31,999,999,2014,31

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon at AT_FDCWD -100 -2 -100 -100 -100 -100
.syscon at,AT_FDCWD,-100,-2,-100,-100,-100,-100

Some files were not shown because too many files have changed in this diff Show more