[all-commits] [llvm/llvm-project] 4dac0d: [LLD][ELF] Fix SHF_MERGE misalignment when spilled...

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Tue Dec 10 13:43:35 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dac0dff086090d071fc3ef60d7458b3d6cfde60
      https://github.com/llvm/llvm-project/commit/4dac0dff086090d071fc3ef60d7458b3d6cfde60
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M lld/ELF/OutputSections.cpp
    M lld/test/ELF/linkerscript/section-class.test

  Log Message:
  -----------
  [LLD][ELF] Fix SHF_MERGE misalignment when spilled (#119289)

Section merging can increase section alignment after potential spill
sections are created. Since this operation is never performed on spill
sections, they can keep their earlier, smaller, alignment, which
produces a misalignment if a spill occurs.

This change propagates alignment increases forward after merging.



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