Add scouts honor escape hatch for source embedding

This commit is contained in:
Justine Tunney 2020-06-15 19:01:28 -07:00
parent c91b3c5006
commit b4269930f7
547 changed files with 1516 additions and 944 deletions

View file

@ -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__

View 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__

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥+𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥+𝑦, aborting on overflow.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
__asan_addr_is_in_fake_stack:
__asan_alloca_poison:

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
.privileged
.yoink __FILE__
.source __FILE__
__asan_load1:
push $1

View file

@ -19,7 +19,7 @@
*/
#include "ape/macros.h"
.real
.yoink __FILE__
.source __FILE__
.code16 # .code32 .code64
/ Lightweight universal overridable assert() macro support.

View file

@ -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:

View file

@ -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.

View file

@ -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.
/

View file

@ -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.

View file

@ -19,7 +19,7 @@
*/
#include "ape/macros.h"
.real
.yoink __FILE__
.source __FILE__
.code16 # .code32 .code64
/ Linkable delegate for traditional Unix user process termination.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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
/

View file

@ -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.

View file

@ -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.

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥*𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥*𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥*𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns -𝑥, aborting on overflow (two's complement bane).
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns -𝑥, aborting on overflow (two's complement bane).
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns -𝑥, aborting on overflow.
/

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
.text.unlikely
.yoink __FILE__
.source __FILE__
/ Arithmetic overflow handler.
/

View file

@ -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.

View file

@ -19,7 +19,7 @@
*/
#include "ape/macros.h"
.real
.yoink __FILE__
.source __FILE__
.code16 # .code32 .code64
/**

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥-𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥-𝑦, aborting on overflow.
/

View file

@ -20,7 +20,7 @@
#include "libc/macros.h"
.align 16
.text.likely
.yoink __FILE__
.source __FILE__
/ Returns 𝑥-𝑦, aborting on overflow.
/

View file

@ -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.

View file

@ -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__

View file

@ -20,7 +20,7 @@
#include "ape/macros.h"
.real
.code16 # .code32 .code64
.yoink __FILE__
.source __FILE__
/**
* @fileoverview Overridable stubs for synthetic sanitizer calls.

View file

@ -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__

View file

@ -18,8 +18,8 @@
02110-1301 USA
*/
#include "libc/macros.h"
.source __FILE__
_start_xnu:
jmp abort
.endfn _start_xnu,weak
.yoink __FILE__