* sysdeps/arm/dl-machine.h (elf_machine_dynamic): Correct GOT access to
load the _DYNAMIC slot.
This commit is contained in:
parent
6752404e77
commit
3dff8d2978
@ -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.
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user