-/* $OpenBSD: boot.h,v 1.32 2021/11/16 02:46:46 guenther Exp $ */
+/* $OpenBSD: boot.h,v 1.33 2022/01/12 21:41:06 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
#define _DYN_LOADER
-#include <sys/types.h>
-#include <sys/mman.h>
#include <sys/exec_elf.h>
+#include <sys/mman.h>
+
+#include <machine/reloc.h>
+
+__dead
+void _dl_exit(int);
#include "archdep.h"
#define REDIRECT_SYSCALL(x) typeof(x) x asm("_libc_"#x) __dso_hidden
REDIRECT_SYSCALL(mprotect);
-#ifdef RCRT0
-
#if RELOC_TAG == DT_RELA
typedef Elf_RelA RELOC_TYPE;
#elif RELOC_TAG == DT_REL
}
}
}
-
-#endif /* RCRT0 */
-/* $OpenBSD: crt0.c,v 1.16 2021/11/14 00:45:38 guenther Exp $ */
+/* $OpenBSD: crt0.c,v 1.17 2022/01/12 21:41:06 guenther Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
#include <limits.h>
#include "md_init.h"
-#ifdef MD_RCRT0_START
+#ifdef RCRT0
# include BOOT_H
#endif
#include "extern.h"
-/* $OpenBSD: boot_md.h,v 1.1 2021/11/14 00:45:38 guenther Exp $ */
+/* $OpenBSD: boot_md.h,v 1.2 2022/01/12 21:41:06 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
#define _DYN_LOADER
-#include <sys/types.h>
-#include <sys/mman.h>
#include <sys/exec_elf.h>
+#include <sys/mman.h>
+
+#include <machine/reloc.h>
+
+__dead
+void _dl_exit(int);
#include "archdep.h"
#define REDIRECT_SYSCALL(x) typeof(x) x asm("_libc_"#x) __dso_hidden
REDIRECT_SYSCALL(mprotect);
-#ifdef RCRT0
-
#if RELOC_TAG == DT_RELA
typedef Elf_RelA RELOC_TYPE;
#elif RELOC_TAG == DT_REL
}
}
}
-
-#endif /* RCRT0 */
-/* $OpenBSD: boot_md.h,v 1.1 2021/11/14 00:45:38 guenther Exp $ */
+/* $OpenBSD: boot_md.h,v 1.2 2022/01/12 21:41:06 guenther Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
#define _DYN_LOADER
-#include <sys/types.h>
-#include <sys/mman.h>
#include <sys/exec_elf.h>
+#include <sys/mman.h>
+
+#include <machine/reloc.h>
+
+__dead
+void _dl_exit(int);
#include "archdep.h"
#define REDIRECT_SYSCALL(x) typeof(x) x asm("_libc_"#x) __dso_hidden
REDIRECT_SYSCALL(mprotect);
-#ifdef RCRT0
-
#define DT_PROC(n) ((n) - DT_LOPROC)
#if RELOC_TAG == DT_RELA
}
}
}
-
-#endif /* RCRT0 */