This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] Embarrassing ppc64 -pie fix


Hi!

I was testing the patch with .data section and just later on changed it
to .data.rel.ro.local. The difference is that .data has default section
flags while .data.rel.ro.local does not have it...

2003-07-10  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
	.data.rel.ro.local to "aw".

--- libc/sysdeps/powerpc/powerpc64/elf/start.S.jj	2003-07-10 11:27:20.000000000 -0400
+++ libc/sysdeps/powerpc/powerpc64/elf/start.S	2003-07-10 11:31:29.000000000 -0400
@@ -22,7 +22,7 @@
 
  /* These are the various addresses we require.  */
 #ifdef PIC
-	.section ".data.rel.ro.local"
+	.section ".data.rel.ro.local","aw"
 #else
 	.section ".rodata"
 #endif

	Jakub


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