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

@ -222,7 +222,7 @@ static const uint32_t NSYNC_WAITER_TAG = 0x726d2ba9;
0x1 /* waiter reserved by a thread, even when not in use */
#define WAITER_IN_USE 0x2 /* waiter in use by a thread */
#define ASSERT(x) _npassert(x)
#define ASSERT(x) npassert(x)
/* Return a pointer to the nsync_waiter_s containing struct Dll *e. */
#define DLL_NSYNC_WAITER(e) \

View file

@ -28,7 +28,7 @@
// once we're paying the cost of nsync we might as well get the benefit
// of a better pthread_once(), since no other component pulls it in now
STATIC_YOINK("nsync_run_once");
__static_yoink("nsync_run_once");
asm(".ident\t\"\\n\\n\
*NSYNC (Apache 2.0)\\n\

View file

@ -29,7 +29,7 @@
* @fileoverview Semaphores w/ Linux Futexes API.
*/
#define ASSERT(x) _npassert(x)
#define ASSERT(x) npassert(x)
/* Check that atomic operations on nsync_atomic_uint32_ can be applied to int. */
static const int assert_int_size = 1 /

View file

@ -33,7 +33,7 @@
* @fileoverview Semaphores w/ POSIX Semaphores API.
*/
#define ASSERT(x) _npassert(x)
#define ASSERT(x) npassert(x)
struct sem {
int64_t id;