* [PATCH: hppa] Fix loading of global pointer in _start
@ 2016-06-21 22:35 John David Anglin
2016-06-30 16:10 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: John David Anglin @ 2016-06-21 22:35 UTC (permalink / raw)
To: GNU C Library; +Cc: Carlos O'Donell, Mike Frysinger
[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
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.
Change has been tested on Debian Linux.
Please install if okay.
Regards,
Dave Anglin
--
John David Anglin dave.anglin@bell.net
[-- Attachment #2: submitted-start.diff.txt --]
[-- Type: text/plain, Size: 515 bytes --]
2016-06-21 John David Anglin <danglin@gcc.gnu.org>
[BZ 20277]
* sysdeps/hppa/start.S (_start): Correct loading of global pointer
when SHARED is defined.
diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S
index 90d4331..b7ab830 100644
--- a/sysdeps/hppa/start.S
+++ b/sysdeps/hppa/start.S
@@ -131,8 +131,10 @@ _start:
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH: hppa] Fix loading of global pointer in _start
2016-06-21 22:35 [PATCH: hppa] Fix loading of global pointer in _start John David Anglin
@ 2016-06-30 16:10 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-06-30 16:10 UTC (permalink / raw)
To: John David Anglin; +Cc: GNU C Library, Carlos O'Donell
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
On 21 Jun 2016 18:35, John David Anglin wrote:
> 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.
>
> Change has been tested on Debian Linux.
>
> Please install if okay.
i'm not familiar enough with the hppa ABI to say, but i know
you are prob the best expert we have here ;). merged!
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-30 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 22:35 [PATCH: hppa] Fix loading of global pointer in _start John David Anglin
2016-06-30 16:10 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).