tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc m68k default optimization flag



I wrote:

> #     build  libgcc_s/libgcc_s.so.1.0
> rm -f libgcc_s.so.1.0
> /usr/local/src/obj.hp300/tooldir.Linux-2.6.32-042stab079.5-i686/bin/m68k--netbsdelf-gcc
>  -nodefaultlibs -Wl,-x -shared -Wl,-soname,libgcc_s.so.1 
> -Wl,--warn-shared-textrel -Wl,-Map=libgcc_s.so.1.map   
> --sysroot=/usr/local/src/obj.hp300/destdir.hp300 -nodefaultlibs 
> -Wl,--version-script=/usr/local/src/external/gpl3/gcc/lib/libgcc/libgcc_s/obj.hp300/libgcc.map
>   -o libgcc_s.so.1.0  -Wl,-rpath,/lib  -L=/lib  -Wl,--whole-archive 
> libgcc_s_pic.a  -Wl,--no-whole-archive  
> libgcc_s_pic.a(_float.pico):(.text+0x8): relocation truncated to fit: 
> R_68K_PC16 against symbol `$_exception_handler' defined in .text section in 
> libgcc_s_pic.a(_floatex.pico)

Tweaking link order in m68k/defs.mk seems to work around..
(too large offsets?)

Index: external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk,v
retrieving revision 1.1
diff -u -p -r1.1 defs.mk
--- external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk      1 Mar 2014 10:00:35 
-0000       1.1
+++ external/gpl3/gcc/lib/libgcc/arch/m68k/defs.mk      22 Jun 2014 10:50:30 
-0000
@@ -6,7 +6,7 @@ G_INCLUDES=-I. -I. -I../.././gcc -I${GNU
 G_LIB2ADD=${GNUHOSTDIST}/libgcc/config/m68k/fpgnulib.c xfgnulib.c 
enable-execute-stack.c
 G_LIB2ADDEH=${GNUHOSTDIST}/libgcc/unwind-dw2.c 
${GNUHOSTDIST}/libgcc/unwind-dw2-fde-dip.c ${GNUHOSTDIST}/libgcc/unwind-sjlj.c 
${GNUHOSTDIST}/libgcc/unwind-c.c ${GNUHOSTDIST}/libgcc/emutls.c
 G_LIB2ADD_ST=
-G_LIB1ASMFUNCS=_mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _double _float 
_floatex _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 _eqsf2 _nesf2 _gtsf2 _gesf2 
_ltsf2 _lesf2
+G_LIB1ASMFUNCS=_mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _floatex _float 
_double _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 _eqsf2 _nesf2 _gtsf2 _gesf2 
_ltsf2 _lesf2
 G_LIB1ASMSRC=m68k/lb1sf68.S
 G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp


---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index