This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]