unresolved relocation??

Ian Lance Taylor iant@google.com
Wed Jun 9 04:32:00 GMT 2010


Iain Worlock <iworlock@jigsawtech.com> writes:

> The flag '-std=c99' was not recognised, but as gcc 2.91.66 is pre 1999
> I didn't find that surprising & removed this.  The real problem I have
> is that a few files in to the compile, I get an 'Error: unresolved
> relocation' in a temporary asm file (/tmp/XYZ.s).  If I remove the
> -fPIC flag (position independent code), compilation goes a little
> further but fails on link.  As I am trying to build a library, I'm
> assuming that I actually do want to specify -fPIC, but have no idea
> what the unresolved relocation is referring to, or how to resolve it.

Show us a small test case, with the generated assembly code.  I don't
know what that error message means.

It is quite likely that it is simply a bug in the ancient toolchain
you are using.

Ian



More information about the Gcc-help mailing list