This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
glibc-2.2.3 alphaev6 warning about __gmon_start__ when compiling with -lstdc++
- To: "GNU C Library" <libc-alpha at sourceware dot cygnus dot com>
- Subject: glibc-2.2.3 alphaev6 warning about __gmon_start__ when compiling with -lstdc++
- From: "Ken Whaley" <ken at believe dot com>
- Date: Fri, 15 Jun 2001 19:12:15 -0700
Using: binutils 2.11.90.0.15, glibc-2.2.3, gcc-2.96-85 RH on an
alpha ev6, and when linking a program with shared libstdc++,
I get the following message:
% gcc -Wl,--dynamic-linker=/usr/local/lib/ld-2.2.3.so \
-B/usr/local/lib/ \
-Wl,-rpath=/usr/local/lib \
sctest.o -o sctest -lstdc++
/usr/local/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.96/../../../../alphaev6-
unknown-linux-gnu/bin/ld: warning: type and size of dynamic symbol
`__gmon_start__' are not defined
% readelf -a sctest | grep gmon
120010980 f00000019 R_ALPHA_GLOB_DAT 0000000000000000
__gmon_start__ + 0
15: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
69: 0000000120000730 0 NOTYPE LOCAL DEFAULT 11 call_gmon_start
119: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
I don't get this message with the same combination of tools but
replacing glibc-2.2.3 with glibc-2.1.3 (so the libstdc++ is the
same).
I don't see this problem using the same tool versions on i686.
Any ideas? My programs seem to run fine despite this warning.
Any idea of what sort of problems could arise from this?
Ken