From 66c8103bdf54c1335efe8181f6110358f0277671 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 8 Oct 2019 07:07:18 -0700 Subject: Revert clang workaround for _begin that is no longer needed --- elf/rtld.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'elf') diff --git a/elf/rtld.c b/elf/rtld.c index 9c942ad..8071e2f 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -402,13 +402,7 @@ _dl_start_final (void *arg, struct dl_start_final_info *info) #endif _dl_setup_hash (&GL(dl_rtld_map)); GL(dl_rtld_map).l_real = &GL(dl_rtld_map); -#if defined(__clang__) - /* Work around an lld complaint that _begin cannot have a reloc and - also be absolute because of _begin=0 on linker line. */ - GL(dl_rtld_map).l_map_start = (ElfW(Addr)) 0; -#else GL(dl_rtld_map).l_map_start = (ElfW(Addr)) _begin; -#endif GL(dl_rtld_map).l_map_end = (ElfW(Addr)) _end; GL(dl_rtld_map).l_text_end = (ElfW(Addr)) _etext; /* Copy the TLS related data if necessary. */ -- cgit v1.1