illegal symbol index in reloc
Shaun Jackman
sjackman@pathwayconnect.com
Wed Jun 25 21:39:00 GMT 2003
I found the source of my problem. ARM_COFF_BUGFIX must be defined for
arm-wince-pe. A patch follows.
Cheers,
Shaun
diff -ur binutils-2.14-/bfd/config.bfd binutils-2.14/bfd/config.bfd
--- binutils-2.14-/bfd/config.bfd 2003-06-17 15:57:35.000000000 -0600
+++ binutils-2.14/bfd/config.bfd 2003-06-17 16:03:02.000000000 -0600
@@ -169,7 +169,7 @@
targ_defvec=armpe_little_vec
targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
targ_underscore=no
- targ_cflags=-DARM_WINCE
+ targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
;;
arm-*-pe*)
targ_defvec=armpe_little_vec
On Wed, 2003-06-25 at 10:33, Shaun Jackman wrote:
> I am getting the error message "illegal symbol index in reloc".
>
> /tools/wince/lib/gcc-lib/arm-wince-pe/3.2/../../../../arm-wince-pe/bin/ld: /tools/wince/lib/gcc-lib/arm-wince-pe/3.2/../../../../arm-wince-pe/lib/libc.a(startup.o): illegal symbol index in reloc: 14942211
>
> What causes this error, and what does it mean? Is it indicative of an
> unhealthy binutils, or an unhealthy gcc? Where should I start debugging?
>
> Thanks,
> Shaun
More information about the Binutils
mailing list