Date: Thu, 3 Jul 2003 17:05:15 -0700 (PDT) From: Jake Burkholder <jake@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/rtld-elf/sparc64 rtld_machdep.h rtld_start.S Message-ID: <200307040005.h6405Fhe073790@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jake 2003/07/03 17:05:15 PDT FreeBSD src repository Modified files: libexec/rtld-elf/sparc64 rtld_machdep.h rtld_start.S Log: Avoid using the global offset table to get the address of _DYNAMIC in rtld. When _DYNAMIC is referenced normally from C the global offset table is used implicitly, but newer versions of binutils don't initialize it statically in the binary, so this doesn't work until rtld is relocated, which _DYNAMIC is needed for... So, as on other systems with the same problem, we disassemble a call instruction to _DYNAMIC in order to get its address. Revision Changes Path 1.5 +1 -1 src/libexec/rtld-elf/sparc64/rtld_machdep.h 1.5 +17 -0 src/libexec/rtld-elf/sparc64/rtld_start.S
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307040005.h6405Fhe073790>