aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/hppa/dl-symaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hppa/dl-symaddr.c')
-rw-r--r--sysdeps/hppa/dl-symaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/hppa/dl-symaddr.c b/sysdeps/hppa/dl-symaddr.c
index aa5ac2f..4615dfc 100644
--- a/sysdeps/hppa/dl-symaddr.c
+++ b/sysdeps/hppa/dl-symaddr.c
@@ -23,7 +23,7 @@ void *
_dl_symbol_address (struct link_map *map, const ElfW(Sym) *ref)
{
/* Find the "ip" from the "map" and symbol "ref" */
- Elf32_Addr value = (map ? map->l_addr : 0) + ref->st_value;
+ Elf32_Addr value = SYMBOL_ADDRESS (map, ref, false);
/* On hppa, we have to return the pointer to function descriptor.
This involves an "| 2" to inform $$dyncall that this is a plabel32 */