diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-04-12 15:47:16 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-04-12 15:47:16 +0200 |
commit | 7a0108deec4772bfa3abfce8cbf1d30a15a55dad (patch) | |
tree | 4db6e710189bde0bd9b8256db5c4f65b6d5910c2 /ldso | |
parent | 60118f8fe9e6b06eff3d6625bfcaaec23bac4b50 (diff) |
silence debug warning
variable 'tmp' set but not used
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 6b64f3e04..8fb8ffa2d 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -736,9 +736,9 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure, #if defined(USE_TLS) && USE_TLS if (tlsppnt) { _dl_debug_early("Found TLS header for %s\n", libname); -#if NO_TLS_OFFSET != 0 +# if NO_TLS_OFFSET != 0 tpnt->l_tls_offset = NO_TLS_OFFSET; -#endif +# endif tpnt->l_tls_blocksize = tlsppnt->p_memsz; tpnt->l_tls_align = tlsppnt->p_align; if (tlsppnt->p_align == 0) @@ -755,10 +755,14 @@ struct elf_resolve *_dl_load_elf_shared_library(int secure, /* We know the load address, so add it to the offset. */ if (tpnt->l_tls_initimage != NULL) { +# ifdef __SUPPORT_LD_DEBUG_EARLY__ unsigned int tmp = (unsigned int) tpnt->l_tls_initimage; tpnt->l_tls_initimage = (char *) tlsppnt->p_vaddr + tpnt->loadaddr; _dl_debug_early("Relocated TLS initial image from %x to %x (size = %x)\n", tmp, tpnt->l_tls_initimage, tpnt->l_tls_initimage_size); tmp = 0; +# else + tpnt->l_tls_initimage = (char *) tlsppnt->p_vaddr + tpnt->loadaddr; +# endif } } #endif |