Date: Sun, 20 Jun 2004 22:32:20 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf ldscript.ia64 Message-ID: <200406202232.i5KMWK4o088472@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2004-06-20 22:32:20 UTC
FreeBSD src repository
Modified files:
sys/conf ldscript.ia64
Log:
Fix the following error:
ld: locore.o: non-pic code with imm relocation against dynamic
symbol `__gp'
With binutils 2.15, ld(1) defines the implicit/automatic symbol __gp
as a dynamic symbol and thus will now complain when used in a non-PIC
fashion (the immediate relocation used to set the GP register). Resolve
this by defining __gp in the linker script. Make sure __gp is aligned
on a 16-byte boundary.
Note: the 0x200000 magic offset is due to having a 22-bit GP-relative
relocation. The GOT will be accessed with negative offsets from GP.
Revision Changes Path
1.11 +2 -0 src/sys/conf/ldscript.ia64
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406202232.i5KMWK4o088472>
