[PATCH] D133003: [WIP][ELF] Parallelize relocation scanning
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 02:10:34 PDT 2022
ikudrin added inline comments.
================
Comment at: lld/ELF/Symbols.h:289
- // True if this symbol needs a canonical PLT entry, or (during
- // postScanRelocations) a copy relocation.
- uint8_t needsCopy : 1;
+ uint8_t needsTlsGdToIe : 1;
----------------
MaskRay wrote:
> ikudrin wrote:
> > Why is not `needsTlsGdToIe` moved under `atomic` like `needsTlsGd` and alike?
> All the 8 bits of `std::atomic<uint8_t>` have been used. We need one not in atomic if we want to keep the size of `SymbolUnion` unchanged.
Does that mean that some flags in the atomic do not really need to be handled as such, or that this flag is left outside despite it can be potentially updated concurrently, but there is no space for it in `flags`? In any case, that is worth documenting, at least.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133003/new/
https://reviews.llvm.org/D133003
More information about the llvm-commits
mailing list