]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't truncate symbol values in ELF symbol tables.
authorTom Hughes <tom@compton.nu>
Sat, 2 Apr 2005 14:57:43 +0000 (14:57 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 2 Apr 2005 14:57:43 +0000 (14:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3501

coregrind/vg_symtab2.c

index a1a1f4e07fafc1ee6a29ef3a0e156fb4b9c8f924..8f9a923df5745f3de44fe79b68ef62c24513934c 100644 (file)
@@ -917,7 +917,7 @@ void read_symtab( SegInfo* si, Char* tab_name, Bool do_intercepts,
    for (i = 1; i < (Int)(o_symtab_sz/sizeof(ElfXX_Sym)); i++) {
       ElfXX_Sym* sym = & o_symtab[i];
 #     if 1
-      sym_addr = si->offset + (UInt)sym->st_value;
+      sym_addr = si->offset + sym->st_value;
 
       if (VG_(clo_trace_symtab)) {
          VG_(printf)("raw symbol [%d]: ", i);