mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
416fd86676
- Emulator can now test the αcτµαlly pδrταblε εxεcµταblε bootloader - Whipped up a webserver named redbean. It services 150k requests per second on a single core. Bundling assets inside zip enables extremely fast serving for two reasons. The first is that zip central directory lookups go faster than stat() system calls. The second is that both zip and gzip content-encoding use DEFLATE, therefore, compressed responses can be served via the sendfile() system call which does an in-kernel copy directly from the zip executable structure. Also note that red bean zip executables can be deployed easily to all platforms, since these native executables work on Linux, Mac, BSD, and Windows. - Address sanitizer now works very well
23 lines
597 B
C
23 lines
597 B
C
#ifndef COSMOPOLITAN_TOOL_BUILD_LIB_LOADER_H_
|
|
#define COSMOPOLITAN_TOOL_BUILD_LIB_LOADER_H_
|
|
#include "libc/elf/struct/ehdr.h"
|
|
#include "tool/build/lib/machine.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct Elf {
|
|
const char *prog;
|
|
Elf64_Ehdr *ehdr;
|
|
size_t size;
|
|
int64_t base;
|
|
char *map;
|
|
size_t mapsize;
|
|
};
|
|
|
|
void LoadProgram(struct Machine *, const char *, char **, char **,
|
|
struct Elf *);
|
|
void LoadDebugSymbols(struct Elf *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_TOOL_BUILD_LIB_LOADER_H_ */
|