This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
mcount_internal on ARM
- From: Robert Schwebel <robert at schwebel dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Sat, 20 Dec 2003 16:16:42 +0100
- Subject: mcount_internal on ARM
Hi,
I'm currently trying to build a toolchain for gcc-3.3.2/glibc-2.3.2 on
ARM. This is what I get when building glibc:
----------8<----------
arm-unknown-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/csu/ -Wl,--version-script=/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u __register_frame -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/math -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/dlfcn -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/nss -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/nis -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/rt -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/resolv -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/crypt -L/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/linuxthreads -Wl,-rpath-link=/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/math:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/dlfcn:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/nss:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/nis:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/rt:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/resolv:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/crypt:/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/linuxthreads -o /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc.so -T /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc.so.lds /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/csu/abi-note.o /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf/soinit.os /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc_pic.os /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf/sofini.os /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf/interp.os /usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/elf/ld.so -lgcc
/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc_pic.os(.text+0xbdca8): In function `_mcount':
: undefined reference to `mcount_internal'
collect2: ld returned 1 exit status
make[2]: *** [/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build/libc.so] Error 1
make[2]: Leaving directory `/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/home/robert/cvs/ptxdist/build/glibc-2.3.2-build'
make: *** [/usr/local/home/robert/cvs/ptxdist/state/glibc.compile] Error 2
----------8<----------
Looking at sysdeps/arm/machine-gmon.h and grepping through the sources I
don't find where mcount_internal() is implemented, but as I don't find
it for other architectures as well I assume I missed some glibc magic...
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstraße 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4