Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blink/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static bool LoadElf(struct Machine *m, //
Read16(ehdr->phentsize) * i);
switch (Read32(phdr->type)) {
case PT_GNU_STACK_:
execstack = false;
execstack = Read32(phdr->flags) & PF_X_;
break;
case PT_LOAD_:
end = LoadElfLoadSegment(m, elf->execfn, ehdr, esize, phdr, end, &prot,
Expand Down
4 changes: 4 additions & 0 deletions blink/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ static void *PortableMmap(void *addr, //
}

static int GetBitsInAddressSpace(void) {
#ifdef __EMSCRIPTEN__
return 32;
#else
int i;
void *ptr;
uint64_t want;
Expand All @@ -117,6 +120,7 @@ static int GetBitsInAddressSpace(void) {
}
}
Abort();
#endif
}

static u64 GetVirtualAddressSpace(int vabits, long pagesize) {
Expand Down
2 changes: 0 additions & 2 deletions blink/memorymalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ bool IsValidAddrSize(i64 virt, i64 size) {
}

void InvalidateSystem(struct System *s, bool tlb, bool icache) {
#ifdef HAVE_THREADS
struct Dll *e;
struct Machine *m;
if (tlb || icache) {
Expand All @@ -501,7 +500,6 @@ void InvalidateSystem(struct System *s, bool tlb, bool icache) {
}
UNLOCK(&s->machines_lock);
}
#endif
}

struct FileMap *AddFileMap(struct System *s, i64 virt, i64 size,
Expand Down
Loading