summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2018-12-30 11:55:15 +0000
committermartin <martin@NetBSD.org>2018-12-30 11:55:15 +0000
commit5a11fd141edf9f9f29e42536ef6fe7e664cf08b4 (patch)
tree02efb6259f043217c62a8972d4609fe3b7abc6ab /libexec
parentf4aa005c78ed7f3021eddb28b54b5881683d8145 (diff)
Add support for DT_RUNPATH - it is just the same as we always have treated
DT_RPATH. Approved by core.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/headers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.elf_so/headers.c b/libexec/ld.elf_so/headers.c
index 43326ba232a..efce432d5f7 100644
--- a/libexec/ld.elf_so/headers.c
+++ b/libexec/ld.elf_so/headers.c
@@ -1,4 +1,4 @@
-/* $NetBSD: headers.c,v 1.64 2018/07/24 13:48:48 joerg Exp $ */
+/* $NetBSD: headers.c,v 1.65 2018/12/30 11:55:15 martin Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.64 2018/07/24 13:48:48 joerg Exp $");
+__RCSID("$NetBSD: headers.c,v 1.65 2018/12/30 11:55:15 martin Exp $");
#endif /* not lint */
#include <err.h>
@@ -216,6 +216,7 @@ _rtld_digest_dynamic(const char *execname, Obj_Entry *obj)
break;
case DT_RPATH:
+ case DT_RUNPATH:
/*
* We have to wait until later to process this, because
* we might not have gotten the address of the string