-msoft-float for mipsel-linux?

kevin kevinATgv.com.tw
Tue Sep 14 21:44:00 GMT 1999


thanks alot,

please help again
it seems still missing something

########## i build it with your patch  and following step:

./configure --prefix=/usr/local --with-newlib --target=mipsel-linux
make SUBDIRS="libiberty texinfo gcc" ALL_TARGET_MODULES= \
        CONFIGURE_TARGET_MODULES= INSTALL_TARGET_MODULES= LANGUAGES="c"
make SUBDIRS="libiberty texinfo gcc" INSTALL_TARGET_MODULES= \
        LANGUAGES="c" install
make LANGUAGES="c c++"
make LANGUAGES="c c++" install

##########and check it with fileutil: df.c

mipsel-linux-gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DSHAREDIR=\"/usr/local
/share\" -DHAVE_CONFIG_H -I.. -I. -I../lib -I../intl  -g -O2 -msoft-float -c df.
c
mipsel-linux-gcc  -o df  df.o ../lib/libfu.a
df.o: In function `human_readable_1k_blocks':
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:177: undefined reference to `__floa
tsidf'
df.o: In function `/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c':
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:179: undefined reference to `__gedf
2'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:184: undefined reference to `__gedf
2'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:186: undefined reference to `__muld
f3'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:194: undefined reference to `__gedf
2'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:198: undefined reference to `__eqdf
2'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:296: undefined reference to `__floa
tsidf'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:296: undefined reference to `__muld
f3'
/usr/local/mnt/gvcmd/fileutils-3.16/src/df.c:307: undefined reference to `__fixd
fsi'
[snip]
collect2: ld returned 1 exit status
make: *** [df] Error 1

######## following is soft-float/libgcc.a

__dummy.o:
00000000 T __dummy
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

__gcc_bcmp.o:
00000000 T __gcc_bcmp
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

__main.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_ashldi3.o:
00000000 T __ashldi3
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.
                          00000000 t gcc2_compiled.

_ashrdi3.o:
00000000 T __ashrdi3
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_bb.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_clear_cache.o:
00000000 T __clear_cache
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_cmpdi2.o:
00000000 T __cmpdi2
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.
         U _gp_disp
00000000 t gcc2_compiled.

_ctors.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_divdi3.o:
00000000 r __clz_tab
00000000 T __divdi3
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_eh.o:
00000000 ? __FRAME_BEGIN__
00000000 T __default_terminate
         U __dummy
00000004 D __dynamic_handler_chain
00000004 C __eh_info
00000004 C __eh_pc
000000d8 T __empty
         U __frame_state_for           000000d8 T __empty
         U __frame_state_for
000000ec T __get_dynamic_handler_chain
00000000 t __gnu_compiled_c
00000308 T __sjpopnthrow
0000010c T __sjthrow
00000034 T __terminate
00000000 D __terminate_func
00000870 T __throw
00000080 T __throw_type_match
         U _gp_disp
         U abort
0000070c t copy_reg
000004dc t find_exception_handler
00000000 t gcc2_compiled.
000005e0 t get_reg
000007ac t next_stack_level
0000069c t put_reg
         U strcmp
00000000 b top_elt

_eprintf.o:
00000000 t __gnu_compiled_c
_eprintf.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_exit.o:
00000000 t __gnu_compiled_c
00000000 D _exit_dummy_decl
00000000 t gcc2_compiled.

_ffsdi2.o:
00000000 T __ffsdi2
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_fixdfdi.o:
00000000 ? __FRAME_BEGIN__
00000000 T __fixdfdi
         U __fixunsdfdi
00000000 t __gnu_compiled_c
         U __ltdf2
         U __negdf2
         U _gp_disp
         U __negdf2
         U _gp_disp
00000000 t gcc2_compiled.

_fixsfdi.o:
00000000 ? __FRAME_BEGIN__
00000000 T __fixsfdi
         U __fixunssfdi
00000000 t __gnu_compiled_c
         U __ltsf2
         U __negsf2
         U _gp_disp
00000000 t gcc2_compiled.

_fixtfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixunsdfdi.o:
00000000 ? __FRAME_BEGIN__
         U __adddf3
         U __cmpdi2
00000000 T __fixunsdfdi
         U __cmpdi2
00000000 T __fixunsdfdi
         U __fixunsdfsi
         U __floatdidf
00000000 t __gnu_compiled_c
         U __ltdf2
         U __muldf3
         U __negdf2
         U __subdf3
         U _gp_disp
00000000 t gcc2_compiled.

_fixunsdfsi.o:
00000000 ? __FRAME_BEGIN__
         U __adddf3
         U __fixdfsi
00000000 T __fixunsdfsi
         U __gedf2
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_fixunssfdi.o:

_fixunssfdi.o:
00000000 ? __FRAME_BEGIN__
         U __adddf3
         U __cmpdi2
         U __extendsfdf2
         U __fixunsdfsi
00000000 T __fixunssfdi
         U __floatdidf
00000000 t __gnu_compiled_c
         U __ltdf2
         U __muldf3
         U __negdf2
         U __subdf3
         U _gp_disp
00000000 t gcc2_compiled.

_fixunssfsi.o:
00000000 ? __FRAME_BEGIN__
         U __addsf3
         U __fixsfsi
00000000 T __fixunssfsi
         U __gesf2
00000000 T __fixunssfsi
         U __gesf2
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_fixunstfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixunsxfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixunsxfsi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixxfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_floatdidf.o:                      00000000 T __fixunssfsi
         U __gesf2
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_fixunstfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixunsxfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixunsxfsi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_fixxfdi.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_floatdidf.o:

_floatdidf.o:
00000000 ? __FRAME_BEGIN__
         U __adddf3
00000000 T __floatdidf
         U __floatsidf
00000000 t __gnu_compiled_c
         U __muldf3
         U __negdf2
         U _gp_disp
00000000 t gcc2_compiled.

_floatdisf.o:
00000000 ? __FRAME_BEGIN__
         U __adddf3
00000000 T __floatdisf
         U __floatsidf
00000000 t __gnu_compiled_c
         U __muldf3
         U __negdf2
         U __truncdfsf2
         U _gp_disp
00000000 t gcc2_compiled.
         U _gp_disp
00000000 t gcc2_compiled.

_floatditf.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_floatdixf.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_lshrdi3.o:
00000000 t __gnu_compiled_c
00000000 T __lshrdi3
         U _gp_disp
00000000 t gcc2_compiled.

_moddi3.o:
00000000 ? __FRAME_BEGIN__
00000000 r __clz_tab
00000000 t __gnu_compiled_c
00000000 T __moddi3
         U _gp_disp

00000000 T __moddi3
         U _gp_disp
00000000 t gcc2_compiled.

_muldi3.o:
00000000 t __gnu_compiled_c
00000000 T __muldi3
         U _gp_disp
00000000 t gcc2_compiled.

_negdi2.o:
00000000 t __gnu_compiled_c
00000000 T __negdi2
         U _gp_disp
00000000 t gcc2_compiled.

_new_handler.o:
00000000 ? __FRAME_BEGIN__
00000048 T __default_new_handler
00000000 t __gnu_compiled_c
00000000 D __new_handler
         U _exit
         U _gp_disp
         U _exit
         U _gp_disp
00000000 t gcc2_compiled.
00000000 T set_new_handler

_op_delete.o:
00000000 ? __FRAME_BEGIN__
00000000 T ___builtin_delete
00000000 W __builtin_delete
00000000 t __gnu_compiled_c
         U _gp_disp
         U free
00000000 t gcc2_compiled.

_op_new.o:
00000000 ? __FRAME_BEGIN__
00000000 T ___builtin_new
00000000 W __builtin_new
         U __default_new_handler
00000000 t __gnu_compiled_c
         U __new_handler
         U _gp_disp
00000000 t gcc2_compiled.
         U _gp_disp
00000000 t gcc2_compiled.
         U malloc

_op_vdel.o:
00000000 ? __FRAME_BEGIN__
00000000 T ___builtin_vec_delete
         U __builtin_delete
00000000 W __builtin_vec_delete
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_op_vnew.o:
00000000 ? __FRAME_BEGIN__
00000000 T ___builtin_vec_new
         U __builtin_new
00000000 W __builtin_vec_new
00000000 t __gnu_compiled_c
         U _gp_disp
00000000 t gcc2_compiled.

_pure.o:

_pure.o:
00000000 ? __FRAME_BEGIN__
00000000 t __gnu_compiled_c
00000000 T __pure_virtual
         U _exit
         U _gp_disp
00000000 t gcc2_compiled.

_shtab.o:
00000000 t __gnu_compiled_c
00000000 D __shtab
00000000 t gcc2_compiled.

_trampoline.o:
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

_ucmpdi2.o:
00000000 t __gnu_compiled_c
00000000 T __ucmpdi2
         U _gp_disp
00000000 t gcc2_compiled.
         U _gp_disp
00000000 t gcc2_compiled.

_udiv_w_sdiv.o:
00000000 t __gnu_compiled_c
00000000 T __udiv_w_sdiv
         U _gp_disp
00000000 t gcc2_compiled.

_udivdi3.o:
00000000 r __clz_tab
00000000 t __gnu_compiled_c
00000000 T __udivdi3
         U _gp_disp
00000000 t gcc2_compiled.

_udivmoddi4.o:
00000000 ? __FRAME_BEGIN__
00000000 r __clz_tab
00000000 t __gnu_compiled_c
00000000 T __udivmoddi4
         U _gp_disp
00000000 t gcc2_compiled.

         U _gp_disp
00000000 t gcc2_compiled.

_umoddi3.o:
00000000 ? __FRAME_BEGIN__
00000000 r __clz_tab
00000000 t __gnu_compiled_c
00000000 T __umoddi3
         U _gp_disp
00000000 t gcc2_compiled.

_varargs.o:
00000000 T __builtin_saveregs
00000000 t __gnu_compiled_c
00000000 t gcc2_compiled.

dp-bit.o:
00000000 ? __FRAME_BEGIN__
00000000 t __gnu_compiled_c
         U __make_dp
00000fac T __make_fp
00000f28 T __negsf2
00000214 t _fpadd_parts
00000f28 T __negsf2
00000214 t _fpadd_parts
00000a98 t _fpcmp_parts
00000884 t _fpdiv_parts
000005c8 t _fpmul_parts
         U _gp_disp
00000424 T fpadd
00000bf8 T fpcmp
000009cc T fpdiv
000007b8 T fpmul
000004f0 T fpsub
00001008 T fptodp
00000d7c T fptosi
00000e50 T fptoui
00000000 t gcc2_compiled.
00000000 t pack_f
00000ca0 T sitofp
00000000 b thenan.2
00000128 t unpack_f

exception.o:
000005b4 W _$_10bad_typeid
0000077c T _$_13bad_exception
000005b4 W _$_10bad_typeid
0000077c T _$_13bad_exception
00000698 W _$_8bad_cast
00000894 T _$_9exception
000007d4 T __13bad_exception
000008ec T __9exception
00000000 ? __FRAME_BEGIN__
         U __builtin_delete
         U __builtin_new
00000124 T __cp_exception_info
000001dc T __cp_pop_exception
00000144 T __cp_push_exception
0000003c T __default_unexpected__Fv
         U __eh_info
         U __eh_pc
00000000 t __gnu_compiled_cplusplus
         U __is_pointer__FPv
         U __rtti_si
         U __rtti_user
         U __terminate_func
0000060c W __tf10bad_typeid
00000808 T __tf13bad_exception
000006f0 W __tf8bad_cast
00000808 T __tf13bad_exception
000006f0 W __tf8bad_cast
00000910 T __tf9exception
         U __throw
00000374 T __throw_bad_cast
00000440 T __throw_bad_typeid
0000000c C __ti10bad_typeid
0000000c C __ti13bad_exception
0000000c C __ti8bad_cast
00000008 C __ti9exception
00000320 T __uncatch_exception
00000000 d __unexpected_func
00000008 W __vt_10bad_typeid
00000028 D __vt_13bad_exception
00000018 W __vt_8bad_cast
00000038 D __vt_9exception
         U _gp_disp
00000000 t gcc2_compiled.
00000078 T set_terminate__FPFv_v
000000a4 T set_unexpected__FPFv_v
00000000 T terminate__Fv
0000050c T uncaught_exception__Fv
000000d8 T unexpected__Fv
0000050c T uncaught_exception__Fv
000000d8 T unexpected__Fv
00000568 T what__C9exception

fp-bit.o:
00000000 ? __FRAME_BEGIN__
00000000 t __gnu_compiled_c
         U __make_dp
00000fac T __make_fp
00000f28 T __negsf2
00000214 t _fpadd_parts
00000a98 t _fpcmp_parts
00000884 t _fpdiv_parts
000005c8 t _fpmul_parts
         U _gp_disp
00000424 T fpadd
00000bf8 T fpcmp
000009cc T fpdiv
000007b8 T fpmul
000004f0 T fpsub
00001008 T fptodp
00000d7c T fptosi
00000e50 T fptoui
00000d7c T fptosi
00000e50 T fptoui
00000000 t gcc2_compiled.
00000000 t pack_f
00000ca0 T sitofp
00000000 b thenan.2
00000128 t unpack_f

frame.o:
00000000 ? __FRAME_BEGIN__
00000e40 T __deregister_frame
00000d7c T __deregister_frame_info
00000ea0 T __frame_state_for
00000000 t __gnu_compiled_c
00000c54 T __register_frame
00000c0c T __register_frame_info
00000cc4 T __register_frame_info_table
00000d0c T __register_frame_table
         U _gp_disp
         U abort
00000168 t add_fdes
00000104 t count_fdes
00000044 t decode_sleb128
00000104 t count_fdes
00000044 t decode_sleb128
00000000 t decode_uleb128
0000075c t execute_cfa_insn
000005a0 t extract_cie_info
000000a0 t fde_insert
00000460 t find_fde
00000298 t frame_init
         U free
00000000 t gcc2_compiled.
         U malloc
         U memset
00000000 b objects
         U strcmp
         U strlen

new.o:
000000f8 T _$_9bad_alloc
         U _$_9exception
00000000 ? __FRAME_BEGIN__
00000000 t __gnu_compiled_cplusplus
00000024 T __nw__FUiPv
         U __rtti_si

00000024 T __nw__FUiPv
         U __rtti_si
00000074 T __tf9bad_alloc
         U __tf9exception
0000000c C __ti9bad_alloc
         U __ti9exception
00000000 T __vn__FUiPv
00000000 D __vt_9bad_alloc
         U _gp_disp
00000000 t gcc2_compiled.
0000000c R nothrow
00000048 T what__C9bad_alloc

new1.o:
00000000 ? __EXCEPTION_TABLE__
00000000 ? __FRAME_BEGIN__
         U __cp_exception_info
         U __eh_pc
00000000 t __gnu_compiled_cplusplus
         U __new_handler
00000000 T __nw__FUiRC9nothrow_t
         U __throw
         U _gp_disp
         U __throw
         U _gp_disp
00000000 t gcc2_compiled.
         U malloc
         U terminate__Fv
         U unexpected__Fv

new2.o:
00000000 ? __EXCEPTION_TABLE__
00000000 ? __FRAME_BEGIN__
         U __cp_exception_info
         U __eh_pc
00000000 t __gnu_compiled_cplusplus
         U __nw__FUiRC9nothrow_t
         U __throw
00000000 T __vn__FUiRC9nothrow_t
         U _gp_disp
00000000 t gcc2_compiled.
         U terminate__Fv
         U unexpected__Fv

tinfo.o:
000005e4 T _$_14__si_type_info
tinfo.o:
000005e4 T _$_14__si_type_info
00000708 T _$_16__user_type_info
000004bc T _$_17__class_type_info
00000000 T _$_9type_info
00000504 T __14__si_type_infoPCcRC16__user_type_info
0000062c T __16__user_type_infoPCc
000003d8 T __17__class_type_infoPCcPCQ217__class_type_info9base_infoUi
00000798 T __9type_infoPCc
00000000 ? __FRAME_BEGIN__
         U __builtin_delete
00000768 T __eq__C9type_infoRC9type_info
00000000 t __gnu_compiled_cplusplus
00000750 T __ne__C9type_infoRC9type_info
00000058 T __rtti_class
000000ac T __rtti_si
000000fc T __rtti_user
00000550 T __tf14__si_type_info
00000674 T __tf16__user_type_info
00000428 T __tf17__class_type_info
000007c4 T __tf9type_info
0000000c C __ti14__si_type_info
0000000c C __ti16__user_type_info
0000000c C __ti14__si_type_info
0000000c C __ti16__user_type_info
0000000c C __ti17__class_type_info
00000008 C __ti9type_info
00000010 D __vt_14__si_type_info
00000020 D __vt_16__user_type_info
00000000 D __vt_17__class_type_info
00000030 D __vt_9type_info
         U _gp_disp
00000168 T dcast__C14__si_type_infoRC9type_infoiPvPC9type_infoT3
00000148 T dcast__C16__user_type_infoRC9type_infoiPvPC9type_infoT3
000001d8 T dcast__C17__class_type_infoRC9type_infoiPvPC9type_infoT3
00000000 t gcc2_compiled.
00000780 T name__C9type_info

tinfo2.o:
0000174c W _$_16__attr_type_info
000015c4 W _$_16__func_type_info
0000143c W _$_16__ptmd_type_info
00001500 W _$_16__ptmf_type_info
00001378 W _$_17__array_type_info
00001688 W _$_19__builtin_type_info
00001810 W _$_19__pointer_type_info
00001688 W _$_19__builtin_type_info
00001810 W _$_19__pointer_type_info
         U _$_9type_info
00000000 ? __FRAME_BEGIN__
0000095c T __dynamic_cast
00000000 t __gnu_compiled_cplusplus
00000734 T __is_pointer__FPv
00000918 T __rtti_array
00000800 T __rtti_attr
0000084c T __rtti_func
000008d4 T __rtti_ptmd
00000890 T __rtti_ptmf
000007b8 T __rtti_ptr
         U __rtti_si
000016c8 W __tf16__attr_type_info
00001540 W __tf16__func_type_info
000013b8 W __tf16__ptmd_type_info
0000147c W __tf16__ptmf_type_info
         U __tf16__user_type_info
000012f4 W __tf17__array_type_info
00001604 W __tf19__builtin_type_info
0000178c W __tf19__pointer_type_info
         U __tf9type_info
0000178c W __tf19__pointer_type_info
         U __tf9type_info
00001270 T __tfSc
000011ec T __tfUc
00000fdc T __tfUi
00001060 T __tfUl
00001168 T __tfUs
000010e4 T __tfUx
00000cc4 T __tfb
00000d48 T __tfc
00000ed4 T __tfd
00000f58 T __tff
00000bbc T __tfi
00000b38 T __tfl
00000e50 T __tfr
00000c40 T __tfs
00000a30 T __tfv
00000dcc T __tfw
00000ab4 T __tfx
00000098 T __throw_type_match_rtti
0000000c C __ti16__attr_type_info
0000000c C __ti16__func_type_info
0000000c C __ti16__ptmd_type_info
0000000c C __ti16__func_type_info
0000000c C __ti16__ptmd_type_info
0000000c C __ti16__ptmf_type_info
0000000c C __ti17__array_type_info
0000000c C __ti19__builtin_type_info
0000000c C __ti19__pointer_type_info
         U __ti9type_info
000000ec D __tiSc
000000e4 D __tiUc
000000c4 D __tiUi
000000cc D __tiUl
000000dc D __tiUs
000000d4 D __tiUx
00000094 D __tib
0000009c D __tic
000000b4 D __tid
000000bc D __tif
00000084 D __tii
0000007c D __til
000000ac D __tir
0000008c D __tis
0000006c D __tiv
000000a4 D __tiw
0000006c D __tiv
000000a4 D __tiw
00000074 D __tix
00000050 W __vt_16__attr_type_info
00000030 W __vt_16__func_type_info
00000010 W __vt_16__ptmd_type_info
00000020 W __vt_16__ptmf_type_info
00000000 W __vt_17__array_type_info
00000040 W __vt_19__builtin_type_info
00000060 W __vt_19__pointer_type_info
         U __vt_9type_info
         U _gp_disp
00000000 T before__C9type_infoRC9type_info
00000000 t gcc2_compiled.
         U strcmp
~
--#

Kai Ruottu wrote:

> Tseng Chou Ming wrote:
>
> > How can i enable "-msoft-float" for mipsel-linux-gcc?
> > I tried to use "configure --nfp" but it doesn't work
>
>  The '-msoft-float' needs the 'fp-bit.c' / 'dp-bit.c' routines
> for 'libgcc.a'. These are used now for the embedded 'mips-elf' and
> 'mips-ecoff' targets, but seemingly not for the 'system' targets.
>
> [snip]
>
> Cheers, Kai
>
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list