[uClibc]why doesn't uclibc -msoft-float work like algorithmics -msoft-float?

David Wuertele dave-gnus at bfnet.com
Thu Mar 20 20:18:14 UTC 2003


Someone please hit me with the Clue Hammer.  My C++ file doesn't get
linked the same when I use uclibc as when I use algorithmics.

In the following, I use identical command lines to compile the file
first with algorithmics, then with uclibc.  The uclibc file ends up
with unlinked float commands.  Why are they different?

----------------------------------------------------------------------
With Algorithmics toolchain:

# mipsel-linux-g++ -Wall -O3 -mips2 -msoft-float   -DSTWONDER -DSOLO_MODE -D_BUILD_FOR_HDTV2_ -DSTWX220_PLATFORM -DX220 -DLinux_BUILD -D_REENTRANT -D_DEBUG -D_BUILD_FOR_HDTV2_ -DDRV_ENV -DSHR_NO_MACRO_ERROR_CHECK -D_HDTV2_REGSPEC -I. -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../common/atidrivers/includes -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../common/atidrivers/acl/includes -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../common/atidrivers/acl/locals -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../common/atidrivers/acl/hki -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/core/include -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/core/os/linux/include -I/opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/locals  -c -o /opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/ovl/SetupOverlay.o /opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/ovl/SetupOverlay.cpp
# mipsel-linux-nm /opt/perforce/source/deschutes/rootfs/ati-nfsroot-200302210547/usr/src/drivers/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/ovl/SetupOverlay.o
00000000 T _FilterInit
         U _gp_disp
         U dpadd
         U dpcmp
         U dpdiv
         U dpmul
         U dpsub
         U dptoli
00000000 t gcc2_compiled.
         U litodp
000004b4 T myceil__Fd
000003e4 T myfloor__Fd
# 

----------------------------------------------------------------------
With uclibc toolchain:

$ /home/dave/buildroot/buildroot-200303200950/build/staging_dir/bin/mipsel-uclibc-g++ -Wall -O3 -mips2 -msoft-float   -DSTWONDER -DSOLO_MODE -D_BUILD_FOR_HDTV2_ -DSTWX220_PLATFORM -DX220 -DLinux_BUILD -D_REENTRANT -D_DEBUG -D_BUILD_FOR_HDTV2_ -DDRV_ENV -DSHR_NO_MACRO_ERROR_CHECK -D_HDTV2_REGSPEC -I. -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/common/atidrivers/includes -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/common/atidrivers/acl/includes -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../common/atidrivers/acl/locals -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../common/atidrivers/acl/hki -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/core/include -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/core/os/linux/include -I/home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/locals  -c -o /home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/ovl/SetupOverlay.o /home/dave/buildroot/buildroot/build/atyx220-M12.1/hdtv2/solo/atidrivers/../../../hdtv2/common/atidrivers/acl/ovl/SetupOverlay.cpp
$ ~/buildroot/buildroot/build/staging_dir/bin/mipsel-uclibc-nm ./common/atidrivers/acl/ovl/SetupOverlay.o
         U __adddf3
         U __divdf3
         U __eqdf2
000001cc T _FilterInit
         U __fixdfsi
         U __floatsidf
         U _gp_disp
         U __gtdf2
         U __muldf3
         U __subdf3
000000e4 T _Z6myceild
00000000 T _Z7myfloord
$ 





More information about the uClibc mailing list