From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13802 invoked by alias); 8 Oct 2019 14:09:14 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 13608 invoked by uid 94); 8 Oct 2019 14:08:57 -0000 Date: Tue, 08 Oct 2019 14:09:00 -0000 Message-ID: <20191008140857.13607.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Stan Shebs To: glibc-cvs@sourceware.org Subject: [glibc/google/grte/v5-2.27/master] Revert clang workaround for _begin that is no longer needed X-Act-Checkin: glibc X-Git-Author: Stan Shebs X-Git-Refname: refs/heads/google/grte/v5-2.27/master X-Git-Oldrev: 45078f3e70f409f0c3c5dae32cb37b6ee3deae01 X-Git-Newrev: ffab2c7c63c2ff6f7f56a0605bc0043c50ea8dc7 X-SW-Source: 2019-q4/txt/msg00016.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ffab2c7c63c2ff6f7f56a0605bc0043c50ea8dc7 commit ffab2c7c63c2ff6f7f56a0605bc0043c50ea8dc7 Author: Stan Shebs 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. */