Fix some build breaks

This commit is contained in:
Justine Tunney 2021-09-04 02:29:57 -07:00
parent 27f7ffd4fd
commit a81192e0b9
5 changed files with 5 additions and 10 deletions

View file

@ -131,10 +131,6 @@ o/$(MODE)/examples/nesemu1.com.dbg: \
$(APE)
@$(APELINK)
o/$(MODE)/examples/loader.o: \
OVERRIDE_CCFLAGS += \
-fno-record-gcc-switches
o/$(MODE)/examples/loader.elf: \
o/$(MODE)/examples/loader.o \
examples/loader.lds

View file

@ -43,7 +43,7 @@ asm(".globl\t_start\n\t"
"mov\t%rsp,%rdi\n\t"
"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_Phdr *h;
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;
int c, i, fd, argc;
char *b, *p, *q, **argv;