summaryrefslogtreecommitdiff
path: root/elf/dl-symaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-symaddr.c')
-rw-r--r--elf/dl-symaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-symaddr.c b/elf/dl-symaddr.c
index b3b97418c5..7f1ccc2516 100644
--- a/elf/dl-symaddr.c
+++ b/elf/dl-symaddr.c
@@ -1,5 +1,5 @@
/* Get the symbol address. Generic version.
- Copyright (C) 1999-2016 Free Software Foundation, Inc.
+ Copyright (C) 1999-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +22,7 @@
void *
_dl_symbol_address (struct link_map *map, const ElfW(Sym) *ref)
{
- ElfW(Addr) value = (map ? map->l_addr : 0) + ref->st_value;
+ ElfW(Addr) value = SYMBOL_ADDRESS (map, ref, false);
/* Return the pointer to function descriptor. */
if (ELFW(ST_TYPE) (ref->st_info) == STT_FUNC)