Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/gmp/dist/mpn/powerpc32 Switch to using the se...
details: https://anonhg.NetBSD.org/src/rev/ef53b8074ccc
branches: trunk
changeset: 766828:ef53b8074ccc
user: matt <matt%NetBSD.org@localhost>
date: Sun Jul 03 03:30:19 2011 +0000
description:
Switch to using the secure-plt method of accessing the global offset table.
diffstat:
external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4 | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r a4f0d70bd519 -r ef53b8074ccc external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4
--- a/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4 Sun Jul 03 02:18:20 2011 +0000
+++ b/external/lgpl3/gmp/dist/mpn/powerpc32/elf.m4 Sun Jul 03 03:30:19 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index