summaryrefslogtreecommitdiff
path: root/ldso/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-07 04:46:29 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-07 04:46:29 +0000
commitf7437324306a4ed6d81b6e112059684b90773cde (patch)
tree9569e5a6ded9bc5cf6ba03de41b8a34fd98f4511 /ldso/include
parentce9f1cf9c26bbc4e0cf23c14d8058e1847b1dd8a (diff)
make RUNPATH/RPATH support configurable
Diffstat (limited to 'ldso/include')
-rw-r--r--ldso/include/dl-elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/include/dl-elf.h b/ldso/include/dl-elf.h
index 6ecdfddfb..a3e453f58 100644
--- a/ldso/include/dl-elf.h
+++ b/ldso/include/dl-elf.h
@@ -106,10 +106,12 @@ void __dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info[], void
dynamic_info[DT_BIND_NOW] = 1;
if (dpnt->d_tag == DT_TEXTREL)
dynamic_info[DT_TEXTREL] = 1;
+#ifdef __LDSO_RUNPATH__
if (dpnt->d_tag == DT_RUNPATH)
dynamic_info[DT_RPATH] = 0;
if (dpnt->d_tag == DT_RPATH && dynamic_info[DT_RUNPATH])
dynamic_info[DT_RPATH] = 0;
+#endif
} else if (dpnt->d_tag < DT_LOPROC) {
if (dpnt->d_tag == DT_RELOCCOUNT)
dynamic_info[DT_RELCONT_IDX] = dpnt->d_un.d_val;