summaryrefslogtreecommitdiff
path: root/libexec/ld.so/resolve.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-03-09 14:55:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-03-09 14:55:45 +0000
commit0a7277e8d7ec705d0044489a3741f614ea7217a0 (patch)
tree3b5fe9bf0c1d6ce9288bc3b22253412dfc2d894b /libexec/ld.so/resolve.c
parent25cc7a9dedde5c196c6e55452003ff94a86ac9c6 (diff)
Add support for the DF_TEXTREL flag.
ok patrick@, millert@
Diffstat (limited to 'libexec/ld.so/resolve.c')
-rw-r--r--libexec/ld.so/resolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/resolve.c b/libexec/ld.so/resolve.c
index 3da418eb721..d41181ba209 100644
--- a/libexec/ld.so/resolve.c
+++ b/libexec/ld.so/resolve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resolve.c,v 1.81 2017/01/24 07:48:37 guenther Exp $ */
+/* $OpenBSD: resolve.c,v 1.82 2018/03/09 14:55:44 kettenis Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -281,6 +281,8 @@ _dl_finalize_object(const char *objname, Elf_Dyn *dynp, Elf_Phdr *phdrp,
object->dyn.flags |= dynp->d_un.d_val;
if (dynp->d_un.d_val & DF_SYMBOLIC)
object->dyn.symbolic = 1;
+ if (dynp->d_un.d_val & DF_TEXTREL)
+ object->dyn.textrel = 1;
if (dynp->d_un.d_val & DF_ORIGIN)
object->obj_flags |= DF_1_ORIGIN;
if (dynp->d_un.d_val & DF_BIND_NOW)