diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2022-01-16 02:14:28 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2022-01-16 02:14:28 +0000 |
commit | 59770014aed976ef7a21a6f542f5038346ab1f1a (patch) | |
tree | b6a965e495e3a6276f0a853470a5f79735dde13c /libexec/ld.so/m88k | |
parent | cc33186dbb9e69380b0a7c2505229a5ab9c6f306 (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"
ok aoyama@
Diffstat (limited to 'libexec/ld.so/m88k')
-rw-r--r-- | libexec/ld.so/m88k/archdep.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libexec/ld.so/m88k/archdep.h b/libexec/ld.so/m88k/archdep.h index a7c161fb7a7..fa16862117f 100644 --- a/libexec/ld.so/m88k/archdep.h +++ b/libexec/ld.so/m88k/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.9 2021/11/14 22:07:38 guenther Exp $ */ +/* $OpenBSD: archdep.h,v 1.10 2022/01/16 02:14:27 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -32,15 +32,11 @@ #define RELOC_TAG DT_RELA #define MACHID EM_88K /* 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) +RELOC_DYN(const Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) { if (ELF_R_TYPE(r->r_info) == RELOC_BBASED_32) { *p = v + r->r_addend; @@ -51,4 +47,5 @@ RELOC_DYN(Elf_RelA *r, const Elf_Sym *s, Elf_Addr *p, unsigned long v) } } +#endif /* RCRT0 */ #endif /* _M88K_ARCHDEP_H_ */ |