From 7d5e3ea3ec791c9d5eb0843ae1a3b446198c1cf8 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 4 Jan 2023 01:37:24 +0000 Subject: [PATCH] comment out a function that is only used in rtld --- libexec/ld.elf_so/headers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libexec/ld.elf_so/headers.c b/libexec/ld.elf_so/headers.c index 8e6ad1c914e8..edc625e135cd 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 #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 @@ -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