The patched change fixes a regression for executables compiled with the
-p option and linked with gcrt1.o. The executables crash on startup.
This regression was introduced in 2.22 and was noticed in the gcc testsuite.
(cherry picked from commit
9765ffa71030efd8bb4f2ea4ed6e020fcb4bb714)
+2016-06-30 John David Anglin <danglin@gcc.gnu.org>
+
+ [BZ #20277]
+ * sysdeps/hppa/start.S (_start): Correct loading of global pointer
+ when SHARED is defined.
+
2016-06-30 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
[19822] libm.so install clobbers old version
[19879] network: nss_dns: Stack overflow in getnetbyname implementation
(CVE-2016-3075)
+ [20177] $dp is not initialized correctly in sysdeps/hppa/start.S
\f
Version 2.23
stw %sp, -60(%sp)
#ifdef SHARED
+ /* load global */
addil LT'.Lp__global, %r19
ldw RT'.Lp__global(%r1), %dp
+ ldw 0(%dp), %dp
#else
/* load global */
ldil L%$global$, %dp