This is the mail archive of the gcc-help@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]

Re: unresolved relocation??


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


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