This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Correct ARM pic register support
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-ports at sourceware dot org
- Date: Wed, 5 Jul 2006 12:57:27 -0400
- Subject: Correct ARM pic register support
I checked in the wrong version of this patch on 2006-05-30 and didn't notice
the stray line in my working directory. Oops! Now fixed.
--
Daniel Jacobowitz
CodeSourcery
2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/arm/dl-machine.h (elf_machine_dynamic): Rewrite to load
_GLOBAL_OFFSET_TABLE_ explicitly.
Index: glibc/ports/sysdeps/arm/dl-machine.h
===================================================================
--- glibc.orig/ports/sysdeps/arm/dl-machine.h 2006-07-05 10:42:08.000000000 -0400
+++ glibc/ports/sysdeps/arm/dl-machine.h 2006-05-26 17:08:34.000000000 -0400
@@ -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));