diff options
| author | christos <christos@NetBSD.org> | 2023-01-04 01:37:24 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2023-01-04 01:37:24 +0000 |
| commit | 2846cadccb0cc1a914f4ba1e2ed409134d926d29 (patch) | |
| tree | eb33bcf3da40240953396ee4127ed072c9c6a10e /libexec | |
| parent | 2219cd557fe211dfd9beba879cf56aac966817d6 (diff) | |
comment out a function that is only used in rtld
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/headers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ld.elf_so/headers.c b/libexec/ld.elf_so/headers.c index 8e6ad1c914e..edc625e135c 100644 --- a/libexec/ld.elf_so/headers.c +++ b/libexec/ld.elf_so/headers.c @@ -1,4 +1,4 @@ -/* $NetBSD: headers.c,v 1.70 2021/12/04 14:39:08 skrll Exp $ */ +/* $NetBSD: headers.c,v 1.71 2023/01/04 01:37:24 christos Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -40,7 +40,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: headers.c,v 1.70 2021/12/04 14:39:08 skrll Exp $"); +__RCSID("$NetBSD: headers.c,v 1.71 2023/01/04 01:37:24 christos Exp $"); #endif /* not lint */ #include <err.h> @@ -459,6 +459,7 @@ _rtld_digest_dynamic(const char *execname, Obj_Entry *obj) } } +#ifdef RTLD_LOADER /* * Process a shared object's program header. This is used only for the * main program, when the kernel has already loaded the main program @@ -562,3 +563,4 @@ _rtld_digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry) obj->entry = entry; return obj; } +#endif |
