[git commit] ldso: fix build with PRELINK enabled and !TLS

Carmelo Amoroso carmelo.amoroso at st.com
Fri Aug 26 08:26:17 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=8ed76f5abc1790ae975649c735d5ff15de275615
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 ldso/ldso/ldso.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 34597f5..cbef0ee 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
-- 
1.7.3.4



More information about the uClibc-cvs mailing list