]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/valgrind/src/valgrind-3.6.0-svn/coregrind/m_ume/elf.c
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / coregrind / m_ume / elf.c
index ea1639ee909ead5c6a3ef4a0f6dd3a125e844fd7..35110360114aeec46269724e954dda0607831626 100644 (file)
@@ -310,7 +310,7 @@ Int VG_(load_ELF)(Int fd, const HChar* name, /*MOD*/ExeInfo* info)
    ESZ(Addr) maxaddr = 0;       /* highest mapped address */
    ESZ(Addr) interp_addr = 0;   /* interpreter (ld.so) address */
    ESZ(Word) interp_size = 0;   /* interpreter size */
-   ESZ(Word) interp_align = VKI_PAGE_SIZE;
+   /* ESZ(Word) interp_align = VKI_PAGE_SIZE; */ /* UNUSED */
    Int i;
    void *entry;
    ESZ(Addr) ebase = 0;
@@ -400,7 +400,7 @@ Int VG_(load_ELF)(Int fd, const HChar* name, /*MOD*/ExeInfo* info)
             
             if (!baseaddr_set) {
                interp_addr  = iph->p_vaddr;
-               interp_align = iph->p_align;
+               /* interp_align = iph->p_align; */ /* UNUSED */
                baseaddr_set = 1;
             }
 
@@ -509,6 +509,7 @@ Int VG_(load_ELF)(Int fd, const HChar* name, /*MOD*/ExeInfo* info)
 #else
    info->init_ip  = (Addr)entry;
    info->init_toc = 0; /* meaningless on this platform */
+   (void) interp_offset; /* stop gcc complaining it is unused */
 #endif
    VG_(free)(e->p);
    VG_(free)(e);