------- Comment #3 from seongbae dot park at gmail dot com  2006-06-23 18:26 
-------
I'm able to reproduce the problem with 4.2.0 on linux/x86.

valgrind-3.2.0/memcheck/mc_main.c has 

    359 static AuxMapEnt  hacky_auxmaps[N_AUXMAPS];
...
    362 static AuxMapEnt* auxmap      = &hacky_auxmaps[0];

There's no direct use of hacky_auxmaps except through auxmap.

Anyway, 4.2 leaves the relocation:

# readelf -s ./bad.o | grep aux
   323: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND hacky_auxmaps
# readelf -r ./bad.o | grep aux
00009c87  00014301 R_386_32          00000000   hacky_auxmaps
#

which obviously can not be resolved. 
The bad relocation is in .rel.debug_info section.

I'll try to trace back why the bad relocation is generated.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27950

Reply via email to