PATCH: Allow building on armv4l-unknown-linux-gnu

Manfred Hollstein manfredh@redhat.com
Sat Dec 2 07:07:00 GMT 2000


Hi there,

The current t-linux  file for ARM sets up  multilibs for hard and soft
float.  AFAIK, all  Linux systems including the  ARM one use either an
FPU or, if  that's not available, an  FP emulator which makes using FP
instructions transparent to the user.

Building current sources  from CVS fails  when libgcc/crtbegin/end are
built   for   the   soft-float     version;  the   reason    is   that
/usr/lib/crt{i,n}.o were built using  hard-float flags, which ld  then
in turn complains about.

I'm not sure how others succeeded  to build this configuration without
a similar patch.

OK to install?

Cheers, manfred

2000-12-02  Manfred Hollstein  <manfredh@redhat.com>

	* arm/t-linux (MULTILIB_OPTIONS): Comment.
	(MULTILIB_DIRNAMES): Likewise.
	(EXTRA_MULTILIB_PARTS): Likewise.
	(LIBGCC): Likewise.
	(INSTALL_LIBGCC): Likewise.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el gcc-20001202.orig/gcc/config/arm/t-linux gcc-20001202/gcc/config/arm/t-linux
--- gcc-20001202.orig/gcc/config/arm/t-linux	Thu Aug 12 11:41:02 1999
+++ gcc-20001202/gcc/config/arm/t-linux	Sat Dec  2 12:16:08 2000
@@ -13,15 +13,15 @@ LIBGCC1 = libgcc1-asm.a
 LIB1ASMSRC = arm/lib1funcs.asm
 LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
 
-MULTILIB_OPTIONS = mhard-float/msoft-float
-MULTILIB_DIRNAMES = hard-float soft-float
+# MULTILIB_OPTIONS = mhard-float/msoft-float
+# MULTILIB_DIRNAMES = hard-float soft-float
 
 # If you want to build both APCS variants as multilib options this is how
 # to do it.
 # MULTILIB_OPTIONS += mapcs-32/mapcs-26
 # MULTILIB_DIRNAMES += apcs-32 apcs-26
 
-EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
+# EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
 
-LIBGCC = stmp-multilib
-INSTALL_LIBGCC = install-multilib
+# LIBGCC = stmp-multilib
+# INSTALL_LIBGCC = install-multilib


More information about the Gcc-patches mailing list