diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-01-07 09:36:31 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-01-07 09:36:31 +0100 |
commit | 93a45ff1ca6d459618bb0cf93580c4b2809a4b61 (patch) | |
tree | 01ba50a65134ba45d974f63156617392dabfd430 /sysdeps/s390/s390-32 | |
parent | d5780febe69c2fe42d857e2feed54e9f4ba9ab87 (diff) | |
download | glibc-93a45ff1ca6d459618bb0cf93580c4b2809a4b61.tar glibc-93a45ff1ca6d459618bb0cf93580c4b2809a4b61.tar.gz glibc-93a45ff1ca6d459618bb0cf93580c4b2809a4b61.tar.bz2 glibc-93a45ff1ca6d459618bb0cf93580c4b2809a4b61.zip |
S/390: Make jmp_buf extendible.
Diffstat (limited to 'sysdeps/s390/s390-32')
-rw-r--r-- | sysdeps/s390/s390-32/__longjmp-common.c (renamed from sysdeps/s390/s390-32/__longjmp.c) | 2 | ||||
-rw-r--r-- | sysdeps/s390/s390-32/setjmp-common.S (renamed from sysdeps/s390/s390-32/setjmp.S) | 24 |
2 files changed, 15 insertions, 11 deletions
diff --git a/sysdeps/s390/s390-32/__longjmp.c b/sysdeps/s390/s390-32/__longjmp-common.c index 5d46e21923..f78ef656e5 100644 --- a/sysdeps/s390/s390-32/__longjmp.c +++ b/sysdeps/s390/s390-32/__longjmp-common.c @@ -25,7 +25,7 @@ /* Jump to the position specified by ENV, causing the setjmp call there to return VAL, or 1 if VAL is 0. */ -void +attribute_hidden void __longjmp (__jmp_buf env, int val) { #ifdef PTR_DEMANGLE diff --git a/sysdeps/s390/s390-32/setjmp.S b/sysdeps/s390/s390-32/setjmp-common.S index b8a0296b02..d7bb720454 100644 --- a/sysdeps/s390/s390-32/setjmp.S +++ b/sysdeps/s390/s390-32/setjmp-common.S @@ -27,24 +27,24 @@ ENTRY (setjmp) .weak C_SYMBOL_NAME (setjmp) lhi %r3,1 /* second argument of one */ - j .Linternal_sigsetjmp /* branch relativ to __sigsetjmp */ + j 0f /* branch relativ to __sigsetjmp */ END (setjmp) /* Binary compatibility entry point. */ ENTRY(_setjmp) .weak C_SYMBOL_NAME (_setjmp) lhi %r3,0 /* second argument of zero */ - j .Linternal_sigsetjmp /* branch relativ to __sigsetjmp */ + j 0f /* branch relativ to __sigsetjmp */ END (_setjmp) libc_hidden_def (_setjmp) ENTRY(__setjmp) lhi %r3,0 /* second argument of zero */ - j .Linternal_sigsetjmp /* branch relativ to __sigsetjmp */ + j 0f /* branch relativ to __sigsetjmp */ END (__setjmp) ENTRY(__sigsetjmp) -.Linternal_sigsetjmp: +0: #ifdef PTR_MANGLE stm %r6,%r13,0(%r2) /* store registers in jmp_buf */ lr %r4,%r14 @@ -55,6 +55,10 @@ ENTRY(__sigsetjmp) #else stm %r6,%r15,0(%r2) /* store registers in jmp_buf */ #endif +#ifndef __V1_JMPBUF + lhi %r4,0 + st %r4,56(%r2) /* Set __flags to 0. */ +#endif std %f4,40(%r2) std %f6,48(%r2) #if defined NOT_IN_libc && defined IS_IN_rtld @@ -66,15 +70,15 @@ ENTRY(__sigsetjmp) we can't save and restore our caller's value. Instead, we do an indirect jump through the GOT. */ basr %r1,0 -.L0: al %r1,.L1 - .L0(0,%r1) /* get address of global offset table */ - /* get address of __sigjmp_save from got */ +0: al %r1,1f-0b(0,%r1) /* get address of global offset table */ + /* get address of __sigjmp_save from got */ l %r1,__sigjmp_save@GOT12(0,%r1) br %r1 -.L1: .long _GLOBAL_OFFSET_TABLE_ - .L0 +1: .long _GLOBAL_OFFSET_TABLE_ - 0b #else basr %r1,0 -.L0: l %r1,.L1-.L0(0,%r1) /* load address of __sigjmp_save */ - br %r1 /* tail-call __sigjmp_save */ -.L1: .long __sigjmp_save +0: l %r1,1f-0b(0,%r1) /* load address of __sigjmp_save */ + br %r1 /* tail-call __sigjmp_save */ +1: .long __sigjmp_save #endif END (__sigsetjmp) |