[all-commits] [llvm/llvm-project] 8c1871: [ELF] Expand LMA region if output section alignmen...

Konstantin Schwarz via All-commits all-commits at lists.llvm.org
Fri Nov 19 02:27:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c18719bae6f0fe6ff97adad2303c447083e14be
      https://github.com/llvm/llvm-project/commit/8c18719bae6f0fe6ff97adad2303c447083e14be
  Author: Konstantin Schwarz <konstantin.schwarz at hightec-rt.com>
  Date:   2021-11-19 (Fri, 19 Nov 2021)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    A lld/test/ELF/linkerscript/lma-align2.test

  Log Message:
  -----------
  [ELF] Expand LMA region if output section alignment introduces padding

When aligning the start address of an output section introduces a gap between the current dot pointer
and the new aligned address, we were already properly expanding the memory region, if available.

D74286 introduced a new behavior to also align the LMA address if an LMA region is specified.
However, this did not expand the corresponding LMA region.
Now, we also expand the LMA region if it is set.

This fixes PR52510.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D114166




More information about the All-commits mailing list