[all-commits] [llvm/llvm-project] 632354: [LLD][ELF] Skip non-SHF_ALLOC sections when checki...

Mingjie Xu via All-commits all-commits at lists.llvm.org
Mon Jun 30 18:02:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6323541a2a56c5632fc3075873fb720e6da1da5c
      https://github.com/llvm/llvm-project/commit/6323541a2a56c5632fc3075873fb720e6da1da5c
  Author: Mingjie Xu <xumingjie.enna1 at bytedance.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M lld/ELF/Arch/X86_64.cpp

  Log Message:
  -----------
  [LLD][ELF] Skip non-SHF_ALLOC sections when checking max VA and max VA difference in relaxOnce() (#145863)

For non-SHF_ALLOC sections, sh_addr is set to 0.
Skip sections without SHF_ALLOC flag, so `minVA` will not be set to 0
with non-SHF_ALLOC sections, and the size of non-SHF_ALLOC sections will
not contribute to `maxVA`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list