Discussion:
Relocation Error for lab 3
(too old to reply)
ahmad faizal arif
2005-05-25 17:14:00 UTC
Permalink
Does anyone know what these errors mean and what should I do about it?
Thanks.

mylab3.o(.text+0xc):mylab3.o: relocation truncated to fit: 13 .data+2f0
mylab3.o(.text+0x30):mylab3.o: relocation truncated to fit: 13 .data+2fa
mylab3.o(.text+0x120):mylab3.o: relocation truncated to fit: 13 .data+300
mylab3.o(.text+0x138):mylab3.o: relocation truncated to fit: 13 .data+307
mylab3.o(.text+0x150):mylab3.o: relocation truncated to fit: 13 .data+30e
mylab3.o(.text+0x168):mylab3.o: relocation truncated to fit: 13 .data+315
mylab3.o(.text+0x180):mylab3.o: relocation truncated to fit: 13 .data+31c
justen allen castle
2005-05-25 19:10:22 UTC
Permalink
the problem is that you declaired a label, say something like
x: .word 20
then in your code you say someting like
or %r0,X,%r3
where you are trying to copy the value in the word corresponding to X
into %r3, except the right way to do it is first get the address of X
into another register and then do what you are trying to do.
Post by ahmad faizal arif
Does anyone know what these errors mean and what should I do about it?
Thanks.
mylab3.o(.text+0xc):mylab3.o: relocation truncated to fit: 13 .data+2f0
mylab3.o(.text+0x30):mylab3.o: relocation truncated to fit: 13 .data+2fa
mylab3.o(.text+0x120):mylab3.o: relocation truncated to fit: 13 .data+300
mylab3.o(.text+0x138):mylab3.o: relocation truncated to fit: 13 .data+307
mylab3.o(.text+0x150):mylab3.o: relocation truncated to fit: 13 .data+30e
mylab3.o(.text+0x168):mylab3.o: relocation truncated to fit: 13 .data+315
mylab3.o(.text+0x180):mylab3.o: relocation truncated to fit: 13 .data+31c
Loading...