From e6dc2a664e7c06fe02a100d6d1a5b0eba3d92935 Mon Sep 17 00:00:00 2001
From: Raghu Gandham <raghu@mips.com>
Date: Tue, 25 Sep 2012 15:50:33 -0700
Subject: [PATCH] Revert dl_fbase initialization to the address where the
 shared object is loaded.

Change-Id: If868cab774a1ae5ff370208216cecda9b8c3b9fd
---
 linker/dlfcn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linker/dlfcn.c b/linker/dlfcn.c
index 44ab158d2..920137e8e 100644
--- a/linker/dlfcn.c
+++ b/linker/dlfcn.c
@@ -138,7 +138,8 @@ int dladdr(const void *addr, Dl_info *info)
         memset(info, 0, sizeof(Dl_info));
 
         info->dli_fname = si->name;
-        info->dli_fbase = (void*)si->load_bias;
+        /* Address at which the shared object is loaded */
+        info->dli_fbase = (void*)si->base;
 
         /* Determine if any symbol in the library contains the specified address */
         Elf32_Sym *sym = soinfo_find_symbol(si, addr);