This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/27950] [4.2 regression] undefined reference when compiling valgrind 3.2.0
- From: "seongbae dot park at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2006 18:26:35 -0000
- Subject: [Bug middle-end/27950] [4.2 regression] undefined reference when compiling valgrind 3.2.0
- References: <bug-27950-12708@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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