This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Link error: relocation truncated to fit: R_MIPS_GPREL16 time


Hi guys !!!,

I have built the toolset fot MIPS R3041 based on the TX39 instructions.
After a few bumps, I have finally a toolset working.

I have added a "sim" target for it, and the HAL packages based on the TX39 
simulator.
So far no problems.

I've got everything up and running using the simulator for ecos, alone.
Now I am trying to get the TCP/IP stack "compiling and linking".
I do not have the hardware yet to test things out.
I intend to see if everything compiles and links for now.

Now, configuring the network package, it compiles fine, but
very far down on the tests, it fails with the link error as indicated below.

I am wondering if this seems familiar to anyone doing MIPS stuff.

All flags passed to the compiler it is pretty much the same ones
used for TX39.


I have looked at the code, and cannot see any problem with the "time"
global variable in use there.

from  ..../include/sys/kernel.h:

/* 1.2 */
extern volatile struct timeval mono_time;
extern struct timeval boottime;
extern struct timeval runtime;
extern volatile struct timeval time;      <------------------ here
extern struct timezone tz;			/* XXX */


--------------------------------------------------------------------------------
mips-r3041-elf-gcc -c  -I/ecos/work/install/include 
-I/ecos/ecos-1.3.1/packages/
kernel/v1_3_1 -I/ecos/ecos-1.3.1/packages/kernel/v1_3_1/src 
-I/ecos/ecos-1.3.1/p
ackages/kernel/v1_3_1/tests -I. 
-I/ecos/ecos-1.3.1/packages/kernel/v1_3_1/tests/
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef 
-Woverloaded-virtual
-g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions 
-fvtable-g
c -finit-priority -Wp,-MD,tests/dhrystone.tmp -o tests/dhrystone.o 
/ecos/ecos-1.
3.1/packages/kernel/v1_3_1/tests/dhrystone.c
mips-r3041-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static 
-L/ecos/work/insta
ll/lib -Ttarget.ld -o /ecos/work/install/tests/kernel/v1_3_1/tests/dhrystone 
tes
ts/dhrystone.o
/ecos/work/install/lib/libtarget.a(net_tcpip_ip_id.o): In function 
`ip_initid':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/ip_id.c:231: 
relocati
on truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_ip_id.o): In function 
`ip_randomid'
:
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/ip_id.c:240: 
relocati
on truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_if_ether.o): In function 
`revarpwho
arewe':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:887: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:875: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:882: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:881: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_if_ether.o): In function 
`revarpreq
uest':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:862: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:861: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_if_ether.o): In function 
`in_arpinp
ut':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:571: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:573: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/netinet/if_ether.c:610: 
reloc
ation truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_if_ethersubr.o): In function 
`ether
_delmulti':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/net/if_ethersubr.c:1083: 
relo
cation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/net/if_ethersubr.c:1134: 
relo
cation truncated to fit: R_MIPS_GPREL16 time
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/net/if_ethersubr.c:1078: 
relo
cation truncated to fit: R_MIPS_GPREL16 time
/ecos/work/install/lib/libtarget.a(net_tcpip_if_loop.o): In function 
`loioctl':
/ecos/ecos-1.3.1/packages/net/tcpip/v1_0b1/src/sys/net/if_loop.c:430: 
relocation
truncated to fit: R_MIPS_GPREL16 time
collect2: ld returned 1 exit status
make[1]: *** [/ecos/work/install/tests/kernel/v1_3_1/tests/dhrystone] Error 
1
make[1]: Leaving directory `/ecos/work/kernel/v1_3_1'
make: *** [tests] Error 2
bash-2.02$

Thanks, Rosimildo.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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