Skip to contentSkip to conversation

libsigsegv: fix sparc64 compile

PATCH New Waldemar Brodkorb 2 participants 5 messages Nov 29, 2015 – Dec 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsigsegv: fix sparc64 compile

Compile tested for sparc/glibc and sparc64/glibc.
Fixes following autobuilder problem:
http://autobuild.buildroot.net/results/1d8e0c22594aef53f7a4de3491454aa78311c815/

---
Debian has a similar fix, but they don't care for sparc.

---
 package/libsigsegv/0005-fix-sparc64-stackpointer.patch |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 package/libsigsegv/0005-fix-sparc64-stackpointer.patch
package/libsigsegv/0005-fix-sparc64-stackpointer.patch new file +16 -0
new file mode 100644
index 0000000..62de35f
@@ -0,0 +1,16 @@
+Fix sparc64 build.
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+
+diff -Nur libsigsegv-2.10.orig/src/fault-linux-sparc.h libsigsegv-2.10/src/fault-linux-sparc.h
+--- libsigsegv-2.10.orig/src/fault-linux-sparc.h	2009-08-01 17:06:49.000000000 +0200
++++ libsigsegv-2.10/src/fault-linux-sparc.h	2015-11-29 11:55:29.000000000 +0100
+@@ -27,4 +27,8 @@
+    (see also <asm/sigcontext.h>)
+    are quite different types.  */
+ 
++#if __WORDSIZE == 64
++#define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.mc_gregs[REG_O6]
++#else
+ #define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.gregs[REG_O6]
++#endif
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 libsigsegv: fix sparc64 compile

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Compile tested for sparc/glibc and sparc64/glibc.
Fixes following autobuilder problem:
http://autobuild.buildroot.net/results/1d8e0c22594aef53f7a4de3491454aa78311c815/

---
Debian has a similar fix, but they don't care for sparc.

So why do they carry the fix?

Committed, thanks.

Please try to submit the fix upstream.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 libsigsegv: fix sparc64 compile

Hi Peter,
Peter Korsgaard wrote,

Quoted 11 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Compile tested for sparc/glibc and sparc64/glibc.
Fixes following autobuilder problem:
http://autobuild.buildroot.net/results/1d8e0c22594aef53f7a4de3491454aa78311c815/

---
Debian has a similar fix, but they don't care for sparc.

So why do they carry the fix?

Because they care for sparc64 (sparcv9).

Quoted 3 lines

Committed, thanks.

Please try to submit the fix upstream.

Okay, I'll try.

best regards
Waldemar

#3 lore raw

PATCH 1/1 libsigsegv: fix sparc64 compile

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Hi,

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Debian has a similar fix, but they don't care for sparc.

So why do they carry the fix?

Because they care for sparc64 (sparcv9).

Ahh, like that.

Quoted 3 lines
Quoted 1 line

Please try to submit the fix upstream.

Okay, I'll try.

Great, thanks!

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#4 lore raw

PATCH 1/1 libsigsegv: fix sparc64 compile

Hi Peter,
Peter Korsgaard wrote,

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Hi,

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Debian has a similar fix, but they don't care for sparc.

So why do they carry the fix?

Because they care for sparc64 (sparcv9).

Quoted 7 lines

Ahh, like that.

Quoted 3 lines
Quoted 1 line

Please try to submit the fix upstream.

Okay, I'll try.

Great, thanks!

Sent:
http://lists.gnu.org/archive/html/bug-libsigsegv/2015-11/msg00000.html

best regards
Waldemar