This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[glibc/google/grte/v5-2.27/master] Revert clang workaround for _begin that is no longer needed


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ffab2c7c63c2ff6f7f56a0605bc0043c50ea8dc7

commit ffab2c7c63c2ff6f7f56a0605bc0043c50ea8dc7
Author: Stan Shebs <stanshebs@google.com>
Date:   Tue Oct 8 07:07:18 2019 -0700

    Revert clang workaround for _begin that is no longer needed

Diff:
---
 elf/rtld.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index 1e9c7ed..7896e8a 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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]