[ELDK] Compilation problems with ppc_85xx- of ELDK42 tool chain

krish radhakrishna.p at gmail.com
Thu Jul 14 11:57:57 CEST 2011


Hi,

When i tried to compile below program, i am getting following errors.
Tool chain: ELDK42 (PowerPC, ppc_85xx)

Error Message:
(.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol
`__libc_start_main@@GLIBC_2.0' defined in .plt section in
/opt/ELDK42/usr/../ppc_85xx/usr/lib/crt1.o
/opt/ELDK42/usr/../ppc_85xx/usr/lib/crti.o: In function `_init':
(.init+0x10): relocation truncated to fit: R_PPC_LOCAL24PC against symbol
`_GLOBAL_OFFSET_TABLE_' defined in .got section in
/opt/ELDK42/usr/../ppc_85xx/usr/lib/crt1.o+fffffffc

Sample program:
#include <stdio.h>

//#define MAX_DATA_SEG    0x1Fbf728 /* The max value compilation success */
#define MAX_DATA_SEG    0x2000000
char gIntA[MAX_DATA_SEG] = {1};

int main(int argc, char *argv[])
{
    return 0;
}

-- 
Regards,
Radha Krishna
"Find out what makes you happy and go behind it"


More information about the eldk mailing list