Disable linker map generation and improve tinyness

This commit is contained in:
Justine Tunney 2023-06-09 01:23:18 -07:00
parent 23e235b7a5
commit 4b2023ffab
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
39 changed files with 119 additions and 121 deletions

View file

@ -25,6 +25,7 @@
#include "libc/elf/struct/shdr.h"
#include "libc/elf/struct/sym.h"
#include "libc/errno.h"
#include "libc/fmt/magnumstrs.internal.h"
#include "libc/intrin/bswap.h"
#include "libc/intrin/kprintf.h"
#include "libc/log/log.h"
@ -165,7 +166,7 @@ nullterminated() static void Print(int fd, const char *s, ...) {
static wontreturn void SysExit(const char *path, const char *func) {
const char *errstr;
if (!(errstr = _strerdoc(errno))) errstr = "EUNKNOWN";
if (!(errstr = _strerrno(errno))) errstr = "EUNKNOWN";
Print(2, path, ": ", func, " failed with ", errstr, "\n", NULL);
exit(1);
}