diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2022-01-17 01:35:37 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2022-01-17 01:35:37 +0000 |
commit | d9297162ec8edef869186313310470776d21155b (patch) | |
tree | 71cd99fb43b285669499aa01ebc0e91ee8228bc6 /libexec/ld.so/aarch64 | |
parent | 3774dfacc5eddab0dd76186cba4b67c8927425c0 (diff) |
Nothing depends on archdep.h pulling in other #includes anymore,
so delete the #includes and hide the RELOC_* functions that are
only used by lib/csu behind "#ifdef RCRT0"
these are the ones I tested; kettenis@ was on board with the concept
Diffstat (limited to 'libexec/ld.so/aarch64')
-rw-r--r-- | libexec/ld.so/aarch64/archdep.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libexec/ld.so/aarch64/archdep.h b/libexec/ld.so/aarch64/archdep.h index 692b0da2a3f..8e6fa7d9259 100644 --- a/libexec/ld.so/aarch64/archdep.h +++ b/libexec/ld.so/aarch64/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.7 2021/11/14 22:07:38 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.8 2022/01/17 01:35:36 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -32,13 +32,9 @@ #define RELOC_TAG DT_RELA #define MACHID EM_AARCH64 /* ELF e_machine ID value checked */ -#include <elf.h> -#include <machine/reloc.h> -#include "syscall.h" -#include "util.h" - - /* Only used in lib/csu/boot.h */ +#ifdef RCRT0 + static inline void RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) { @@ -53,4 +49,5 @@ RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) } } +#endif /* RCRT0 */ #endif /* _AARCH64_ARCHDEP_H_ */ |