aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 8b9e508571..cba75f62fa 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1228,7 +1228,7 @@ cannot allocate TLS data structures for initial thread");
}
else
/* Adjust the PT_PHDR value by the runtime load address. */
- (ElfW(Addr)) l->l_phdr += l->l_addr;
+ l->l_phdr = (ElfW(Phdr) *) ((ElfW(Addr)) l->l_phdr + l->l_addr);
}
#ifdef USE_TLS
@@ -1254,7 +1254,7 @@ cannot allocate TLS data structures for initial thread");
}
}
else
- (ElfW(Addr)) l->l_ld += l->l_addr;
+ l->l_ld = (ElfW(Dyn) *) ((ElfW(Addr)) l->l_ld + l->l_addr);
l->l_entry += l->l_addr;