mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Add scouts honor escape hatch for source embedding
This commit is contained in:
parent
c91b3c5006
commit
b4269930f7
547 changed files with 1516 additions and 944 deletions
|
@ -19,6 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.h"
|
||||
.real
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Most basic tier of program self-termination.
|
||||
|
@ -29,4 +30,3 @@ abort: push %bp
|
|||
rlcall panic
|
||||
int3
|
||||
.endfn abort,weak,protected
|
||||
.yoink __FILE__
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥+𝑦, aborting on overflow.
|
||||
/
|
||||
|
@ -38,4 +39,3 @@ __addvdi3:
|
|||
pop %rbp
|
||||
ret
|
||||
.endfn __addvdi3,globl
|
||||
.yoink __FILE__
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥+𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥+𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
__asan_addr_is_in_fake_stack:
|
||||
__asan_alloca_poison:
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.privileged
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
__asan_load1:
|
||||
push $1
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Lightweight universal overridable assert() macro support.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Did you call a virtual method from a destructor?
|
||||
__cxa_pure_virtual:
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Triggers breakpoint in software debugger.
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
.yoink __FILE__
|
||||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
/ Global variable for last error.
|
||||
/
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.keep.text # gdb needs it
|
||||
|
||||
/ Returns address of errno variable.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Linkable delegate for traditional Unix user process termination.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Thrice re-imagined Unix user process termination API stub.
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Function entry hook stub.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Magic words to unbreak build if GCOV flags are passed.
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
.yoink __FILE__
|
||||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
/ @fileoverview Function Instrumentation No-Op Runtime
|
||||
/
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Function Profiling Hook.
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Optional function stub.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥*𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥*𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥*𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns -𝑥, aborting on overflow (two's complement bane).
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns -𝑥, aborting on overflow (two's complement bane).
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns -𝑥, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.text.unlikely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Arithmetic overflow handler.
|
||||
/
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Aborts or hard blocks instruction pointer.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥-𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥-𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.h"
|
||||
.align 16
|
||||
.text.likely
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/ Returns 𝑥-𝑦, aborting on overflow.
|
||||
/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "ape/macros.h"
|
||||
#include "ape/config.h"
|
||||
.real
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
/ Hoses interrupt descriptor table and triple-faults the system.
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
/ __cxxabiv1::__function_type_info (?)
|
||||
/ Because Clang in MODE=dbg doesn't respect -fno-rtti
|
||||
|
@ -25,4 +26,3 @@
|
|||
_ZTVN10__cxxabiv120__function_type_infoE:
|
||||
.quad 0
|
||||
.endobj _ZTVN10__cxxabiv120__function_type_infoE,globl
|
||||
.yoink __FILE__
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "ape/macros.h"
|
||||
.real
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
.yoink __FILE__
|
||||
.source __FILE__
|
||||
|
||||
/**
|
||||
* @fileoverview Overridable stubs for synthetic sanitizer calls.
|
||||
|
|
|
@ -17,8 +17,9 @@
|
|||
│ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA │
|
||||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.inc"
|
||||
#include "libc/macros.h"
|
||||
.real
|
||||
.source __FILE__
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
__unprovable:
|
||||
|
@ -28,4 +29,3 @@ __unprovable:
|
|||
pop %bp
|
||||
ret
|
||||
.endfn __unprovable,globl,hidden
|
||||
.yoink __FILE__
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
│ 02110-1301 USA │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
.source __FILE__
|
||||
|
||||
_start_xnu:
|
||||
jmp abort
|
||||
.endfn _start_xnu,weak
|
||||
.yoink __FILE__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue