This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add .text to __longjmp.S


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).  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]