From 3dff8d29780b563648c31c3d4a3f2902916d29dc Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 5 Jul 2006 16:46:20 +0000 Subject: [PATCH] * sysdeps/arm/dl-machine.h (elf_machine_dynamic): Correct GOT access to load the _DYNAMIC slot. --- ChangeLog.arm | 5 +++++ sysdeps/arm/dl-machine.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog.arm b/ChangeLog.arm index c76374c..d8ba247 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,8 @@ +2006-07-05 Daniel Jacobowitz + + * sysdeps/arm/dl-machine.h (elf_machine_dynamic): Correct GOT access to + load the _DYNAMIC slot. + 2006-06-08 Mark Shinwell * sysdeps/arm/nptl/pthreaddef.h (CURRENT_STACK_FRAME): Add -12. diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h index 5347d8b..ff8a170 100644 --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h @@ -54,7 +54,7 @@ elf_machine_dynamic (void) { Elf32_Addr dynamic; asm ("ldr %0, 2f\n" - "1: add %0, pc, %0\n" + "1: ldr %0, [pc, %0]\n" "b 3f\n" "2: .word _GLOBAL_OFFSET_TABLE_ - (1b+8)\n" "3:" : "=r" (dynamic)); -- 2.7.4