__do_global_ctors missing
Schmidt, Weston
Weston_Schmidt@cable.comcast.com
Mon Sep 24 23:07:00 GMT 2012
Hello,
I'm having trouble attempting to upgrade from a 2.95 mips-wrs-elf compiler to a 4.7.2 mips-wrs-elf compiler. I believe the link time options are the same:
../gcc-4.7.2/configure \
--target=mips-wrs-elf --enable-languages=c,c++ \
--disable-nls --disable-libssp --with-system-zlib \
--enable-targets=mips-wrs-elf --disable-threads --with-newlib --disable-shared --without-included-gettext \
--enable-newlib-mb --enable-newlib-io-long-long \
--enable-version-specific-runtime-libs
When I inspect the libgcc.a file for the 4.7.2 compiler, there are no __do_global_ctors or __do_global_dtors functions in __main.o.
I expected to see something like this (from the 2.95 release):
__main.o:
U __CTOR_LIST__
U __DTOR_LIST__
00000074 T __do_global_ctors
00000000 T __do_global_dtors
00000104 T __gccmain
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.
00000000 b initialized.10
00000000 d p.3
Instead __main.o is empty. I'm stumped & can't finish linking my cross-compiled project because it needs direct access to the __do_global_ctors/dtors functions.
Any suggestions?
Thanks,
Wes
More information about the Gcc-help
mailing list