[all-commits] [llvm/llvm-project] 66691d: [ELF] Do not try to assign a memory region to a no...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Mon Nov 15 01:00:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66691de94cd7b7b5d2d9ae1d12e99259a8eae5b1
      https://github.com/llvm/llvm-project/commit/66691de94cd7b7b5d2d9ae1d12e99259a8eae5b1
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    A lld/test/ELF/linkerscript/memory-nonalloc.test

  Log Message:
  -----------
  [ELF] Do not try to assign a memory region to a non-allocatable section

Non-allocatable sections are not part of the memory image of the
program, so there is no need to find memory regions for them either
matching properties or handling explicit assignments. The early test
and return help to simplify LinkerScript::findMemoryRegion() a bit.

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




More information about the All-commits mailing list