aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2019-10-08 07:07:18 -0700
committerFangrui Song <i@maskray.me>2021-08-27 17:26:02 -0700
commit66c8103bdf54c1335efe8181f6110358f0277671 (patch)
tree1df1b474066a42b8dbc1e3493ea4985fb48b3203 /elf
parentaf63681769182a8e29568088d6c9cd3c916b22f9 (diff)
downloadglibc-66c8103bdf54c1335efe8181f6110358f0277671.zip
glibc-66c8103bdf54c1335efe8181f6110358f0277671.tar.gz
glibc-66c8103bdf54c1335efe8181f6110358f0277671.tar.bz2
Revert clang workaround for _begin that is no longer needed
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 9c942ad..8071e2f 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. */