Module Name:    src
Committed By:   matt
Date:           Sun Jul  3 03:30:19 UTC 2011

Modified Files:
        src/external/lgpl3/gmp/dist/mpn/powerpc32: elf.m4

Log Message:
Switch to using the secure-plt method of accessing the global offset table.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4
diff -u src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.2
--- src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4:1.1.1.1	Mon Jun 20 05:54:40 2011
+++ src/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4	Sun Jul  3 03:30:19 2011
@@ -41,9 +41,11 @@
 m4_assert_numargs(2)
 `ifdef(`PIC',`
 	mflr	r0
-	bl	_GLOBAL_OFFSET_TABLE_@local-4
-	mflr	$1
+	bl	20,31,1f
+1:	mflr	$1
 	mtlr	r0
+	addis	$1,$1,_GLOBAL_OFFSET_TABLE_-1b@ha
+	addi	$1,$1,_GLOBAL_OFFSET_TABLE_-1b@l
 	lwz	$1, $2@got($1)
 ',`
 	lis	$1, $2@ha

Reply via email to