This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] powerpc: restore TOC when static longjmp to shared object
- From: Florian Weimer <fweimer at redhat dot com>
- To: Rogerio Alves <rcardoso at linux dot vnet dot ibm dot com>, Alexander Monakov <amonakov at ispras dot ru>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 4 Jun 2018 16:38:12 +0200
- Subject: Re: [RFC] powerpc: restore TOC when static longjmp to shared object
- References: <f88767a0-1a38-564d-7bd8-0b5db5bc04df@linux.vnet.ibm.com> <4c67a306-d447-1158-1b92-22ed1cfcfa0a@linux.vnet.ibm.com> <alpine.LNX.2.20.13.1805231219280.27433@monopod.intra.ispras.ru> <8ac334c6-bcf4-7c72-8d28-900fdd3b0bc4@linux.vnet.ibm.com> <alpine.LNX.2.20.13.1805231637590.27433@monopod.intra.ispras.ru> <2b5a4221-f766-0f57-1aa5-94991c4dfa8e@linux.vnet.ibm.com> <4de7760b-04a9-855c-34ac-1565c5532fb9@linux.vnet.ibm.com>
On 06/04/2018 04:34 PM, Rogerio Alves wrote:
diff --git a/setjmp/tst-setjmp-bug21895-static.c b/setjmp/tst-setjmp-bug21895-static.c
new file mode 100644
index 0000000..6ab5340
--- /dev/null
+++ b/setjmp/tst-setjmp-bug21895-static.c
+ /* Destroy TOC area on caller frame. */
+ asm volatile(
+ "li 14, 0\n\t"
+ "std 14, 24(%0)"
+ :
+ : "r" (jb->__jmpbuf[20])
+ );
Sorry, this test is now very POWER-specific and needs to be moved into a
POWER sysdeps directory (preferably the most generic one where the test
is expected to be valid and pass).
Thanks,
Florian