From: Stan Shebs Date: Tue, 8 Oct 2019 14:07:18 +0000 (-0700) Subject: Revert clang workaround for _begin that is no longer needed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c8103bdf54c1335efe8181f6110358f0277671;p=thirdparty%2Fglibc.git Revert clang workaround for _begin that is no longer needed --- diff --git a/elf/rtld.c b/elf/rtld.c index 9c942add0b6..8071e2f5f58 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. */