This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Unknown relocation type 182, 183
- From: "Davíð Kristjánsson" <david dot kristjansson at marel dot is>
- To: binutils at sources dot redhat dot com
- Date: Mon, 9 Aug 2004 14:48:09 +0000
- Subject: Unknown relocation type 182, 183
Hi
We are in the process of trying to compile and build a system originally
written with the Diab compiler suite
for the PowerPC 823 CPU. So far we have had good success.
Now, when we try to link one of the binary only library archives that we
have to our system compiled
and linked using gcc-3.4.0 we get the following error from the linker:
powerpc-eabi-ld: /path/to/libx.a(xxx.o): unknown relocation type 182 for
symbol asdf
powerpc-eabi-ld: /path/to/libx.a(xxx.o): unknown relocation type 183 for
symbol asdf
These relocation types are registered in elf.h as
/* Diab tool relocations. */
#define R_PPC_DIAB_SDA21_HA 182 /* like EMB_SDA21, adjusted high
16 */
#define R_PPC_DIAB_RELSDA_LO 183 /* like EMB_RELSDA, but lower 16
bit */
so they are known. Are they not implemented in ld?
Is our cross compile tool chain wrongly configured (host i686-linux,
target powerpc-eabi)?
Is this a bug?
Any hints or suggestions would be appreciated.
Thanks
David