summaryrefslogtreecommitdiff
path: root/ldso/include/dl-elf.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-05 23:21:22 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-05 23:21:22 +0000
commit47319595bdfdc0dfc8eb5f51bc8bd055a6ea0a7f (patch)
tree2ba1a4c78410fcb692dad3b6ce01ca1bf3cbb2a4 /ldso/include/dl-elf.h
parent9aa22cc9745be04035873b26f82adc4581e602b4 (diff)
patch from Bernd Schmidt to abstract away initializing of relocation addresses
Diffstat (limited to 'ldso/include/dl-elf.h')
-rw-r--r--ldso/include/dl-elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/include/dl-elf.h b/ldso/include/dl-elf.h
index 7b609d592..9d8da0d13 100644
--- a/ldso/include/dl-elf.h
+++ b/ldso/include/dl-elf.h
@@ -141,7 +141,7 @@ void __dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info[],
#define ADJUST_DYN_INFO(tag, load_off) \
do { \
if (dynamic_info[tag]) \
- dynamic_info[tag] += load_off; \
+ dynamic_info[tag] = (unsigned long) DL_RELOC_ADDR(load_off, dynamic_info[tag]); \
} while(0)
ADJUST_DYN_INFO(DT_HASH, load_off);
ADJUST_DYN_INFO(DT_PLTGOT, load_off);