This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[csl-arm] arm-linux-gnueabi specfile bug


config/arm/linux-eabi.h defines SUBTARGET_EXTRA_LINK_SPEC. This is 
concatenated onto the existing target link spec, so needs to start with a 
space. Otherwise -m will be interpreted as part of the preceding option
(-EB in this case).

Tested with cross to arm-none-eabi.
Applied to csl-arm-branch.

Paul

2005-09-07  Paul Brook  <paul@codesourcery.com>

	* config/arm/linux-eabi/h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
	space to string.
Index: gcc/config/arm/linux-eabi.h
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/Attic/linux-eabi.h,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 linux-eabi.h
--- gcc/config/arm/linux-eabi.h	30 Apr 2005 19:34:26 -0000	1.1.2.5
+++ gcc/config/arm/linux-eabi.h	3 Sep 2005 11:13:12 -0000
@@ -48,7 +48,7 @@
 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
 
 #undef SUBTARGET_EXTRA_LINK_SPEC
-#define SUBTARGET_EXTRA_LINK_SPEC "-m armelf_linux_eabi"
+#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi"
 
 /* Use ld-linux.so.3 so that it will be possible to run "classic"
    GNU/Linux binaries on an EABI system.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]