OSDN Git Service

ldso: silence warnings in debug code
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 12 Nov 2013 16:29:48 +0000 (17:29 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 12 Nov 2013 16:29:48 +0000 (17:29 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
ldso/ldso/dl-elf.c
ldso/ldso/ldso.c

index 96459f3..1b06bc1 100644 (file)
@@ -794,7 +794,7 @@ struct elf_resolve *_dl_load_elf_shared_library(unsigned rflags,
 #endif
                {
 # ifdef __SUPPORT_LD_DEBUG_EARLY__
-                       unsigned int tmp = (unsigned int) tpnt->l_tls_initimage;
+                       char *tmp = (char *) 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;
index fddc787..0c2ed07 100644 (file)
@@ -751,8 +751,8 @@ of this helper program; chances are you did not intend to run this program.\n\
         * case the executable is actually an ET_DYN object.
         */
        if (app_tpnt->l_tls_initimage != NULL) {
-               unsigned int tmp __attribute((unused)) =
-                       (unsigned int) app_tpnt->l_tls_initimage;
+               char *tmp attribute_unused =
+                       (char *) app_tpnt->l_tls_initimage;
                app_tpnt->l_tls_initimage =
                        (char *) app_tpnt->l_tls_initimage + app_tpnt->loadaddr;
                _dl_debug_early("Relocated TLS initial image from %x to %x (size = %x)\n",