mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +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
|
@ -51,7 +51,7 @@ static void ContinueOnError(int sig, siginfo_t *si, void *vctx) {
|
|||
* on error. It then attempts a volatile read and if it faults, then
|
||||
* this function shall return false. The value at `p` isn't considered.
|
||||
*/
|
||||
noasan bool testlib_memoryexists(const void *p) {
|
||||
dontasan bool testlib_memoryexists(const void *p) {
|
||||
volatile char c;
|
||||
const atomic_char *mem = p;
|
||||
struct sigaction old[2];
|
||||
|
@ -60,11 +60,11 @@ noasan bool testlib_memoryexists(const void *p) {
|
|||
.sa_flags = SA_SIGINFO,
|
||||
};
|
||||
gotsignal = 0;
|
||||
_npassert(!sigaction(SIGSEGV, &sa, old + 0));
|
||||
_npassert(!sigaction(SIGBUS, &sa, old + 1));
|
||||
npassert(!sigaction(SIGSEGV, &sa, old + 0));
|
||||
npassert(!sigaction(SIGBUS, &sa, old + 1));
|
||||
c = atomic_load(mem);
|
||||
(void)c;
|
||||
_npassert(!sigaction(SIGBUS, old + 1, 0));
|
||||
_npassert(!sigaction(SIGSEGV, old + 0, 0));
|
||||
npassert(!sigaction(SIGBUS, old + 1, 0));
|
||||
npassert(!sigaction(SIGSEGV, old + 0, 0));
|
||||
return !gotsignal;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue