From 8ed76f5abc1790ae975649c735d5ff15de275615 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Fri, 26 Aug 2011 10:26:17 +0200 Subject: ldso: fix build with PRELINK enabled and !TLS Signed-off-by: Carmelo Amoroso --- ldso/ldso/ldso.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ldso') 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 -- cgit v1.2.3