public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Revert clang workaround for _begin that is no longer needed
@ 2021-08-28  0:43 Fangrui Song
  0 siblings, 0 replies; 2+ messages in thread
From: Fangrui Song @ 2021-08-28  0:43 UTC (permalink / raw)
  To: glibc-cvs

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

commit 66c8103bdf54c1335efe8181f6110358f0277671
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 9c942add0b..8071e2f5f5 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.  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [glibc/google/grte/v5-2.27/master] Revert clang workaround for _begin that is no longer needed
@ 2019-10-08 14:09 Stan Shebs
  0 siblings, 0 replies; 2+ messages in thread
From: Stan Shebs @ 2019-10-08 14:09 UTC (permalink / raw)
  To: glibc-cvs

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.  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-28  0:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:43 [glibc/google/grte/v5-2.27/master] Revert clang workaround for _begin that is no longer needed Fangrui Song
  -- strict thread matches above, loose matches on Subject: below --
2019-10-08 14:09 Stan Shebs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).