]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a workaround for what seems to be confusion between binutils and the
authorjake <jake@FreeBSD.org>
Fri, 27 Sep 2002 23:12:53 +0000 (23:12 +0000)
committerjake <jake@FreeBSD.org>
Fri, 27 Sep 2002 23:12:53 +0000 (23:12 +0000)
commitc03e93ab3a4cf602e9fad9ef7bc7537a0cf96e8c
treeba3c4f5add825cc1d7164df7492430782b2070c4
parentd08d61cf7e649a1706432628cc516edea8878dd9
Add a workaround for what seems to be confusion between binutils and the
sparc v9 ABI.  The Elf_Rela records for local symbols appear to already
have the symbol's value added in to the addend field, even though the ABI
specifies we need to lookup the symbol and add its value too.  This breaks
text relocations in klds because the symbol's value is added twice, and
the resulting address points off into nowhere land, so for now just use
the addend.

Tested by: rwatson
sys/kern/link_elf.c
sys/kern/link_elf_obj.c
sys/sparc64/sparc64/elf_machdep.c
sys/sys/linker.h