[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[glibc] 04/04: debian/patches/hppa/submitted-start.diff: new patch from John David Anglin to fix crash in executables built with -p and linked against gcrt1.o.



This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 8d1ba91cfe220489cf1be98677130857bb1d391f
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Mon Jun 27 00:25:07 2016 +0200

    debian/patches/hppa/submitted-start.diff: new patch from John David Anglin to fix crash in executables built with -p and linked against gcrt1.o.
---
 debian/changelog                         |  2 ++
 debian/patches/hppa/submitted-start.diff | 21 +++++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 18acf05..155d695 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ glibc (2.22-13) UNRELEASED; urgency=medium
     testsuite on sparc*.
   * debian/sysdeps/mipsel.mk, debian/sysdeps/mips64el.mk: bump ISA to MIPS32
     and MIPS64.
+  * debian/patches/hppa/submitted-start.diff: new patch from John David Anglin
+    to fix crash in executables built with -p and linked against gcrt1.o.
 
  -- Aurelien Jarno <aurel32@debian.org>  Mon, 20 Jun 2016 00:24:17 +0200
 
diff --git a/debian/patches/hppa/submitted-start.diff b/debian/patches/hppa/submitted-start.diff
new file mode 100644
index 0000000..55e9c36
--- /dev/null
+++ b/debian/patches/hppa/submitted-start.diff
@@ -0,0 +1,21 @@
+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
diff --git a/debian/patches/series b/debian/patches/series
index 8fd6be6..2d331fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -66,6 +66,7 @@ hppa/submitted-mathdef.diff
 hppa/cvs-update-mman.h.diff
 hppa/submitted-dladdr.diff
 hppa/submitted-setcontext.diff
+hppa/submitted-start.diff
 
 hurd-i386/local-enable-ldconfig.diff
 hurd-i386/tg-context_functions.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git


Reply to: