]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert clang workaround for _begin that is no longer needed
authorStan Shebs <stanshebs@google.com>
Tue, 8 Oct 2019 14:07:18 +0000 (07:07 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:02 +0000 (17:26 -0700)
elf/rtld.c

index 9c942add0b626b58b69fb7e126485a8b6f388fe5..8071e2f5f58e5bdd91c368de12b1896ecd19b460 100644 (file)
@@ -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.  */