Subject: relocation truncated to fit: R_X86_64_32S
To: None <port-amd64@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-amd64
Date: 10/06/2007 18:45:36
Hi,
I did some changes to the amd64 kernel sources, and when I try to
link I get things like:
../../../../arch/amd64/amd64/locore.S:(.text+0x227b): relocation truncated to fit: R_X86_64_32S against symbol `HYPERVISOR_shared_info' defined in COMMON section in xpmap.o
(yes, I'm working on amd64 support for Xen :)

I get this only for locore.S, for symbols from various sources. The file
looks like:
locore.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
xpmap.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped

The .code32 section of locore.S is inside #ifndef XEN (I checked with
gcc -E that it's not there). Any idea what in locore.S could cause this ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--