This is the mail archive of the mailing list for the binutils 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]

Re: v850 ld error

On 01/09/2013 04:45 PM, Igor Pashev wrote:
09.01.2013 22:33, Joel Sherrill ÐÐÑÐÑ:

Testing binutils and gcc heads, I am getting this error when
linking the autoconf probe for RTEMS when the CPU CFLAG
-mgcc-abi is used:

$ cat m.c
[joel@rtbf64a test-gcc]$ v850-rtems4.11-gcc -mgcc-abi m.c

/users/joel/test-gcc/install-svn/libexec/gcc/v850-rtems4.11/4.8.0/collect2 -m v850 /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi/crt0.o -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib/gcc-abi -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0 -L/users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/lib /tmp/ccuPHsB7.o -lgcc -lc -lgcc /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/../../../../v850-rtems4.11/bin/ld: skipping incompatible /users/joel/test-gcc/install-svn/lib/gcc/v850-rtems4.11/4.8.0/gcc-abi/libgcc.a when searching for -lgcc

I don't have any patches to gcc or binutils.

Any suggestions on what to look for?

Well, libgcc_s is not of that arch which ld expects.
Well Doh!

The gcc-abi and 8byte multilib variants appeared to have
been added around 2012-11-20 by Nick Clifton. I think he
missed changing the ASM_SPEC in gcc/config/v850/rtems.h
when he added it. v850-rtems-gcc wasn't passing in the expected
cpu specification flags.

Nick.. how does this patch to gcc/config/v850/rtems.h look?

Index: rtems.h
--- rtems.h    (revision 195054)
+++ rtems.h    (working copy)
@@ -26,4 +26,8 @@

/* Map mv850e1 and mv850es to mv850e to match MULTILIB_MATCHES */
#undef ASM_SPEC
-#define ASM_SPEC "%{mv850es:-mv850e} %{mv850e1:-mv850e} %{!mv850es:%{!mv850e1:%{mv*:-mv%*}}}"
+#define ASM_SPEC "%{mv850es:-mv850e} \
+%{mv850e1:-mv850e} \
+%{!mv850es:%{!mv850e1:%{mv*:-mv%*}} \
+%{m8byte-align:-m8byte-align} \

-- Joel Sherrill, Ph.D. Director of Research& Development On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35806 Support Available (256) 722-9985

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