[Glibc-bsd-commits] r1897 - trunk/glibc-ports/patches

Petr Salinger ps-guest at alioth.debian.org
Thu Feb 8 21:07:35 CET 2007


Author: ps-guest
Date: 2007-02-08 21:07:35 +0100 (Thu, 08 Feb 2007)
New Revision: 1897

Added:
   trunk/glibc-ports/patches/amd64-dl-machine.diff
Log:
* glibc 2.5 fix up for ld.so on amd64



Added: trunk/glibc-ports/patches/amd64-dl-machine.diff
===================================================================
--- trunk/glibc-ports/patches/amd64-dl-machine.diff	2007-02-07 11:52:42 UTC (rev 1896)
+++ trunk/glibc-ports/patches/amd64-dl-machine.diff	2007-02-08 20:07:35 UTC (rev 1897)
@@ -0,0 +1,16 @@
+
+* probably not kfreebsd specific bug, 
+  but I am not sure as ld.so loading is a little magic
+
+
+--- sysdeps/x86_64/dl-machine.h	2005-07-31 19:49:44.000000000 +0200
++++ sysdeps/x86_64/dl-machine.h	2007-02-08 18:14:56.000000000 +0100
+@@ -286,7 +283,7 @@
+       const Elf64_Sym *const refsym = sym;
+ #endif
+       struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
+-      Elf64_Addr value = (sym == NULL ? 0
++      Elf64_Addr value = (sym_map == NULL ? 0
+ 			  : (Elf64_Addr) sym_map->l_addr + sym->st_value);
+ 
+ #if defined RTLD_BOOTSTRAP && !USE___THREAD




More information about the Glibc-bsd-commits mailing list