summaryrefslogtreecommitdiff
path: root/ldso/ldso/ldso.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-08-26 10:26:17 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-08-26 10:26:17 +0200
commit8ed76f5abc1790ae975649c735d5ff15de275615 (patch)
treee8f003a3b07a21157bbdf183041df248c06d653a /ldso/ldso/ldso.c
parentfdd18680500d8c393332e8cb5d1e9509a32e4c79 (diff)
ldso: fix build with PRELINK enabled and !TLS
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'ldso/ldso/ldso.c')
-rw-r--r--ldso/ldso/ldso.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 34597f5c5..cbef0ee1e 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -304,10 +304,12 @@ static void trace_objects(struct elf_resolve *tpnt, char *str_name)
tpnt->mapaddr, DL_LOADADDR_BASE(tpnt->loadaddr));
}
+#if defined USE_TLS && USE_TLS
if ((tpnt->libtype != program_interpreter) && (tpnt->l_tls_modid))
_dl_dprintf (1, " TLS(%x, %x)\n", tpnt->l_tls_modid,
(size_t) tpnt->l_tls_offset);
else
+#endif
_dl_dprintf (1, "\n");
}
#endif