mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix some build breaks
This commit is contained in:
parent
27f7ffd4fd
commit
a81192e0b9
5 changed files with 5 additions and 10 deletions
|
@ -131,10 +131,6 @@ o/$(MODE)/examples/nesemu1.com.dbg: \
|
||||||
$(APE)
|
$(APE)
|
||||||
@$(APELINK)
|
@$(APELINK)
|
||||||
|
|
||||||
o/$(MODE)/examples/loader.o: \
|
|
||||||
OVERRIDE_CCFLAGS += \
|
|
||||||
-fno-record-gcc-switches
|
|
||||||
|
|
||||||
o/$(MODE)/examples/loader.elf: \
|
o/$(MODE)/examples/loader.elf: \
|
||||||
o/$(MODE)/examples/loader.o \
|
o/$(MODE)/examples/loader.o \
|
||||||
examples/loader.lds
|
examples/loader.lds
|
||||||
|
|
|
@ -43,7 +43,7 @@ asm(".globl\t_start\n\t"
|
||||||
"mov\t%rsp,%rdi\n\t"
|
"mov\t%rsp,%rdi\n\t"
|
||||||
"jmp\tloader");
|
"jmp\tloader");
|
||||||
|
|
||||||
static noasan noubsan void spawn(long *sp, char *b) {
|
static noinstrument noasan noubsan void spawn(long *sp, char *b) {
|
||||||
struct Elf64_Ehdr *e;
|
struct Elf64_Ehdr *e;
|
||||||
struct Elf64_Phdr *h;
|
struct Elf64_Phdr *h;
|
||||||
e = (void *)b;
|
e = (void *)b;
|
||||||
|
@ -61,7 +61,7 @@ static noasan noubsan void spawn(long *sp, char *b) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noasan noubsan void loader(long *sp) {
|
noinstrument noasan noubsan void loader(long *sp) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
int c, i, fd, argc;
|
int c, i, fd, argc;
|
||||||
char *b, *p, *q, **argv;
|
char *b, *p, *q, **argv;
|
||||||
|
|
|
@ -33,7 +33,7 @@ int32_t sys_fstatat(int32_t dirfd, const char *path, struct stat *st,
|
||||||
if (IsAsan() && !__asan_is_valid(path, 1)) return efault();
|
if (IsAsan() && !__asan_is_valid(path, 1)) return efault();
|
||||||
if (IsLinux()) {
|
if (IsLinux()) {
|
||||||
_Static_assert(sizeof(*st) == sizeof(ms.linux), "assumption broken");
|
_Static_assert(sizeof(*st) == sizeof(ms.linux), "assumption broken");
|
||||||
if (IsAsan() && !__asan_is_valid(st, sizeof(*st))) return efault();
|
if (IsAsan() && (st && !__asan_is_valid(st, sizeof(*st)))) return efault();
|
||||||
p = st;
|
p = st;
|
||||||
} else if (st) {
|
} else if (st) {
|
||||||
p = &ms;
|
p = &ms;
|
||||||
|
|
4
third_party/python/Objects/abstract.c
vendored
4
third_party/python/Objects/abstract.c
vendored
|
@ -2210,9 +2210,8 @@ PyObject_CallObject(PyObject *o, PyObject *a)
|
||||||
return PyEval_CallObjectWithKeywords(o, a, NULL);
|
return PyEval_CallObjectWithKeywords(o, a, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MODE_DBG
|
|
||||||
PyObject*
|
PyObject*
|
||||||
_Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
|
(_Py_CheckFunctionResult)(PyObject *func, PyObject *result, const char *where)
|
||||||
{
|
{
|
||||||
int err_occurred = (PyErr_Occurred() != NULL);
|
int err_occurred = (PyErr_Occurred() != NULL);
|
||||||
|
|
||||||
|
@ -2258,7 +2257,6 @@ _Py_CheckFunctionResult(PyObject *func, PyObject *result, const char *where)
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
PyObject_Call(PyObject *func, PyObject *args, PyObject *kwargs)
|
PyObject_Call(PyObject *func, PyObject *args, PyObject *kwargs)
|
||||||
|
|
1
third_party/sqlite3/shell.c
vendored
1
third_party/sqlite3/shell.c
vendored
|
@ -90,6 +90,7 @@
|
||||||
#include "libc/stdio/stdio.h"
|
#include "libc/stdio/stdio.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
|
#include "libc/calls/struct/stat.macros.h"
|
||||||
#include "third_party/sqlite3/sqlite3.h"
|
#include "third_party/sqlite3/sqlite3.h"
|
||||||
|
|
||||||
typedef sqlite3_int64 i64;
|
typedef sqlite3_int64 i64;
|
||||||
|
|
Loading…
Add table
Reference in a new issue