mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 16:28:30 +00:00
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:
parent
6843150e0c
commit
7e0a09feec
510 changed files with 1783 additions and 1483 deletions
2
third_party/nsync/common.internal.h
vendored
2
third_party/nsync/common.internal.h
vendored
|
@ -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) \
|
||||
|
|
2
third_party/nsync/mem/nsync_cv.c
vendored
2
third_party/nsync/mem/nsync_cv.c
vendored
|
@ -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\
|
||||
|
|
2
third_party/nsync/mu_semaphore_futex.c
vendored
2
third_party/nsync/mu_semaphore_futex.c
vendored
|
@ -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 /
|
||||
|
|
2
third_party/nsync/mu_semaphore_sem.c
vendored
2
third_party/nsync/mu_semaphore_sem.c
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue