Browse Source

ldso: fix build with PRELINK enabled and !TLS

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso 14 years ago
parent
commit
8ed76f5abc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ldso/ldso/ldso.c

+ 2 - 0
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