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 "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_allocate_trap 0xffffffff1010ffff globl
.scall _kernelrpc_mach_port_allocate_trap,0xffffffff1010ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_construct_trap 0xffffffff1018ffff globl
.scall _kernelrpc_mach_port_construct_trap,0xffffffff1018ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_deallocate_trap 0xffffffff1012ffff globl
.scall _kernelrpc_mach_port_deallocate_trap,0xffffffff1012ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_destroy_trap 0xffffffff1011ffff globl
.scall _kernelrpc_mach_port_destroy_trap,0xffffffff1011ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_destruct_trap 0xffffffff1019ffff globl
.scall _kernelrpc_mach_port_destruct_trap,0xffffffff1019ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_extract_member_trap 0xffffffff1017ffff globl
.scall _kernelrpc_mach_port_extract_member_trap,0xffffffff1017ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_guard_trap 0xffffffff1029ffff globl
.scall _kernelrpc_mach_port_guard_trap,0xffffffff1029ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_insert_member_trap 0xffffffff1016ffff globl
.scall _kernelrpc_mach_port_insert_member_trap,0xffffffff1016ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_insert_right_trap 0xffffffff1015ffff globl
.scall _kernelrpc_mach_port_insert_right_trap,0xffffffff1015ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_mod_refs_trap 0xffffffff1013ffff globl
.scall _kernelrpc_mach_port_mod_refs_trap,0xffffffff1013ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_move_member_trap 0xffffffff1014ffff globl
.scall _kernelrpc_mach_port_move_member_trap,0xffffffff1014ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_port_unguard_trap 0xffffffff102affff globl
.scall _kernelrpc_mach_port_unguard_trap,0xffffffff102affff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_vm_allocate_trap 0xffffffff100affff globl
.scall _kernelrpc_mach_vm_allocate_trap,0xffffffff100affff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_vm_deallocate_trap 0xffffffff100cffff globl
.scall _kernelrpc_mach_vm_deallocate_trap,0xffffffff100cffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_vm_map_trap 0xffffffff100fffff globl
.scall _kernelrpc_mach_vm_map_trap,0xffffffff100fffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_vm_protect_trap 0xffffffff100effff globl
.scall _kernelrpc_mach_vm_protect_trap,0xffffffff100effff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall _kernelrpc_mach_vm_purgable_control_trap 0xffffffff100bffff globl
.scall _kernelrpc_mach_vm_purgable_control_trap,0xffffffff100bffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall clock_sleep_trap 0xffffffff103effff globl
.scall clock_sleep_trap,0xffffffff103effff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall host_create_mach_voucher_trap 0xffffffff1046ffff globl
.scall host_create_mach_voucher_trap,0xffffffff1046ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall host_self_trap 0xffffffff101dffff globl
.scall host_self_trap,0xffffffff101dffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall iokit_user_client_trap 0xffffffff1064ffff globl
.scall iokit_user_client_trap,0xffffffff1064ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_generate_activity_id 0xffffffff102bffff globl
.scall mach_generate_activity_id,0xffffffff102bffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_msg_overwrite_trap 0xffffffff1020ffff globl
.scall mach_msg_overwrite_trap,0xffffffff1020ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_msg_trap 0xffffffff101fffff globl
.scall mach_msg_trap,0xffffffff101fffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_reply_port 0xffffffff101affff globl
.scall mach_reply_port,0xffffffff101affff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_timebase_info_trap 0xffffffff1059ffff globl
.scall mach_timebase_info_trap,0xffffffff1059ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_voucher_extract_attr_recipe_trap 0xffffffff1048ffff globl
.scall mach_voucher_extract_attr_recipe_trap,0xffffffff1048ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mach_wait_until_trap 0xffffffff105affff globl
.scall mach_wait_until_trap,0xffffffff105affff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall macx_backing_store_recovery 0xffffffff1035ffff globl
.scall macx_backing_store_recovery,0xffffffff1035ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall macx_backing_store_suspend 0xffffffff1034ffff globl
.scall macx_backing_store_suspend,0xffffffff1034ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall macx_swapoff 0xffffffff1031ffff globl
.scall macx_swapoff,0xffffffff1031ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall macx_swapon 0xffffffff1030ffff globl
.scall macx_swapon,0xffffffff1030ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall macx_triggers 0xffffffff1033ffff globl
.scall macx_triggers,0xffffffff1033ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mk_timer_arm_leeway_trap 0xffffffff105fffff globl
.scall mk_timer_arm_leeway_trap,0xffffffff105fffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mk_timer_arm_trap 0xffffffff105dffff globl
.scall mk_timer_arm_trap,0xffffffff105dffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mk_timer_cancel_trap 0xffffffff105effff globl
.scall mk_timer_cancel_trap,0xffffffff105effff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mk_timer_create_trap 0xffffffff105bffff globl
.scall mk_timer_create_trap,0xffffffff105bffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall mk_timer_destroy_trap 0xffffffff105cffff globl
.scall mk_timer_destroy_trap,0xffffffff105cffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall pfz_exit 0xffffffff103affff globl
.scall pfz_exit,0xffffffff103affff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall pid_for_task 0xffffffff102effff globl
.scall pid_for_task,0xffffffff102effff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_signal_all_trap 0xffffffff1022ffff globl
.scall semaphore_signal_all_trap,0xffffffff1022ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_signal_thread_trap 0xffffffff1023ffff globl
.scall semaphore_signal_thread_trap,0xffffffff1023ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_signal_trap 0xffffffff1021ffff globl
.scall semaphore_signal_trap,0xffffffff1021ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_timedwait_signal_trap 0xffffffff1027ffff globl
.scall semaphore_timedwait_signal_trap,0xffffffff1027ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_timedwait_trap 0xffffffff1026ffff globl
.scall semaphore_timedwait_trap,0xffffffff1026ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_wait_signal_trap 0xffffffff1025ffff globl
.scall semaphore_wait_signal_trap,0xffffffff1025ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall semaphore_wait_trap 0xffffffff1024ffff globl
.scall semaphore_wait_trap,0xffffffff1024ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall swtch 0xffffffff103cffff globl
.scall swtch,0xffffffff103cffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall swtch_pri 0xffffffff103bffff globl
.scall swtch_pri,0xffffffff103bffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall task_for_pid 0xffffffff102dffff globl
.scall task_for_pid,0xffffffff102dffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall task_name_for_pid 0xffffffff102cffff globl
.scall task_name_for_pid,0xffffffff102cffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall task_self_trap 0xffffffff101cffff globl
.scall task_self_trap,0xffffffff101cffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall thread_get_special_reply_port 0xffffffff1032ffff globl
.scall thread_get_special_reply_port,0xffffffff1032ffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall thread_self_trap 0xffffffff101bffff globl
.scall thread_self_trap,0xffffffff101bffff,globl

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall thread_switch 0xffffffff103dffff globl
.scall thread_switch,0xffffffff103dffff,globl