[PATCH] D107249: [GlobalOpt] Don't replace alias with aliasee if either alias/aliasee may be preemptible

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 12 16:20:27 PST 2022


MaskRay added a subscriber: zatrazz.
MaskRay added a comment.

@zatrazz https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/azanella/clang the bootstrap issue you saw can be fixed by applying this patch (but it was reverted for a timeout issue).

In `elf/rtld.c`, `bootstrap_map.l_addr = elf_machine_load_address ();`, GOT relocations haven't been applied yet.
Without this patch, the clang build uses `R_X86_64_REX_GOTPCRELX _rtld_global-0x4`.

With this patch or with clang, the PC-relative `R_X86_64_PC32 _rtld_local-0x4` is used, which works.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107249/new/

https://reviews.llvm.org/D107249



More information about the llvm-commits mailing list