This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Add .text to __longjmp.S
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 21 May 2009 18:05:10 -0700
- Subject: PATCH: Add .text to __longjmp.S
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
____longjmp_chk.S includes __longjmp.S. Since there is no .text in
__longjmp.S, function ____longjmp_chk is put in the .rodata.str1.1
section. This patch fixes it.
H.J.
---
2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/__longjmp.S: Add .text.
* sysdeps/x86_64/__longjmp.S: Likewise.
--- sysdeps/i386/__longjmp.S.bar 2009-05-21 13:01:24.000000000 -0700
+++ sysdeps/i386/__longjmp.S 2009-05-21 18:02:31.000000000 -0700
@@ -28,6 +28,7 @@
#define JBUF PARMS
#define VAL JBUF+PTR_SIZE
+ .text
ENTRY (BP_SYM (__longjmp))
ENTER
--- sysdeps/x86_64/__longjmp.S.bar 2009-05-21 13:01:26.000000000 -0700
+++ sysdeps/x86_64/__longjmp.S 2009-05-21 18:02:19.000000000 -0700
@@ -20,6 +20,7 @@
#include <jmpbuf-offsets.h>
#include <asm-syntax.h>
+ .text
/* Jump to the position specified by ENV, causing the
setjmp call there to return VAL, or 1 if VAL is 0.
void __longjmp (__jmp_buf env, int val). */