luke dryden busler
2005-03-03 03:03:18 UTC
lab3.o(.text+0x178):lab3.o: relocation truncated to fit: 13 .data+2c9
lab3.o(.text+0x198):lab3.o: relocation truncated to fit: 13 .data+2c9
lab3.o(.text+0x1b8):lab3.o: relocation truncated to fit: 13 .data+2c9
lab3.o(.text+0x1d8):lab3.o: relocation truncated to fit: 13 .data+2c9
When I looked at the ISEM FAQ/Help on the site, it said this could belab3.o(.text+0x198):lab3.o: relocation truncated to fit: 13 .data+2c9
lab3.o(.text+0x1b8):lab3.o: relocation truncated to fit: 13 .data+2c9
lab3.o(.text+0x1d8):lab3.o: relocation truncated to fit: 13 .data+2c9
caused by something such as:
label: ...
mov label, %rd
The error then results because when things get shifted around after
assembling, the label address becomes too large to encode in the
instruction and then gets truncated. I don't have anything specifically
like that in my code, and since the errors don't really give me line
numbers from the source file, but apparently from the object file (I
think?), it's somewhat difficult for me to track down what's causing the
linking error. What operations besides mov can cause this type of error?
Thanks,
Luke