aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index e6a181d..9038a50 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -476,11 +476,10 @@ _dl_start_final (void *arg, struct dl_start_final_info *info)
#endif
_dl_setup_hash (&_dl_rtld_map);
_dl_rtld_map.l_real = &_dl_rtld_map;
- _dl_rtld_map.l_map_start = (ElfW(Addr)) &__ehdr_start;
- /* Prevent run-time relocations against __ehdr_start and _end. */
- asm ("" : "+g" (_dl_rtld_map.l_map_start));
- _dl_rtld_map.l_map_end = (ElfW(Addr)) _end;
- asm ("" : "+g" (_dl_rtld_map.l_map_end));
+ _dl_rtld_map.l_map_start
+ = (ElfW(Addr)) DL_ADDRESS_WITHOUT_RELOC (&__ehdr_start);
+ _dl_rtld_map.l_map_end
+ = (ElfW(Addr)) DL_ADDRESS_WITHOUT_RELOC (_end);
/* Copy the TLS related data if necessary. */
#ifndef DONT_USE_BOOTSTRAP_MAP
# if NO_TLS_OFFSET != 0