* sysdeps/arm/dl-machine.h (elf_machine_dynamic): Correct GOT access to

load the _DYNAMIC slot.
This commit is contained in:
Daniel Jacobowitz 2006-07-05 16:46:20 +00:00
parent 6752404e77
commit 3dff8d2978
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/arm/dl-machine.h (elf_machine_dynamic): Correct GOT access to
load the _DYNAMIC slot.
2006-06-08 Mark Shinwell <shinwell@codesourcery.com>
* sysdeps/arm/nptl/pthreaddef.h (CURRENT_STACK_FRAME): Add -12.

View File

@ -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));