Mint APE Loader v1.5

This change ports APE Loader to Linux AARCH64, so that Raspberry Pi
users can run programs like redbean, without the executable needing
to modify itself. Progress has also slipped into this change on the
issue of making progress better conforming to user expectations and
industry standards regarding which symbols we're allowed to declare
This commit is contained in:
Justine Tunney 2023-07-26 13:54:49 -07:00
parent 6843150e0c
commit 7e0a09feec
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
510 changed files with 1783 additions and 1483 deletions

View file

@ -25,7 +25,7 @@
#include "third_party/mbedtls/ssl.h"
#include "third_party/mbedtls/x509_crt.h"
STATIC_YOINK("ssl_root_support");
__static_yoink("ssl_root_support");
#define MODE_NONE 0
#define MODE_FILE 1

View file

@ -75,8 +75,8 @@
* the following functions to further expand the information shown by
* the NDEBUG check failure:
*
* STATIC_YOINK("__die");
* STATIC_YOINK("strerror");
* __static_yoink("__die");
* __static_yoink("strerror");
*
* Please note that backtraces aren't ever available in MODE=tiny.
*/

View file

@ -25,7 +25,7 @@
* o//examples/crashreport.com
*/
noubsan int main(int argc, char *argv[]) {
dontubsan int main(int argc, char *argv[]) {
kprintf("----------------\n");
kprintf(" THIS IS A TEST \n");
kprintf("SIMULATING CRASH\n");

View file

@ -13,7 +13,7 @@
#include "libc/stdio/stdio.h"
#include "libc/sysv/consts/sig.h"
STATIC_YOINK("strerror");
__static_yoink("strerror");
int main(int argc, char *argv[]) {
sigset_t ss;

View file

@ -48,7 +48,7 @@
#include "third_party/libcxx/vector"
#include "tool/viz/lib/knobs.h"
STATIC_YOINK("zipos");
__static_yoink("zipos");
#define USAGE \
" [ROM] [FMV]\n\

View file

@ -15,8 +15,8 @@
* Yes this works on Windows.
*/
STATIC_YOINK("_tr");
STATIC_YOINK("_sed");
__static_yoink("_tr");
__static_yoink("_sed");
int main(int argc, char *argv[]) {
system("x=world\n"

View file

@ -28,12 +28,12 @@
* Please note that, by default, APE binaries only use the serial port
* for stdio. To get the VGA console as an added bonus:
*
* STATIC_YOINK("vga_console");
* __static_yoink("vga_console");
*
* Should be added to the top of your main() program source file.
*/
STATIC_YOINK("vga_console");
__static_yoink("vga_console");
int main(int argc, char *argv[]) {
volatile long double x = -.5;

View file

@ -24,9 +24,9 @@
* qemu-system-x86_64 -hda o//examples/vga2.com -serial stdio
*/
STATIC_YOINK("vga_console");
STATIC_YOINK("_idt");
STATIC_YOINK("EfiMain");
__static_yoink("vga_console");
__static_yoink("_idt");
__static_yoink("EfiMain");
int main(int argc, char *argv[]) {
int i;