[all-commits] [llvm/llvm-project] 58789e: [ELF] Refine warning condition for memory region a...

Andreu Carminati via All-commits all-commits at lists.llvm.org
Wed Jun 14 15:23:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58789ed62ad462d421e5c9272f0f80105f6025bf
      https://github.com/llvm/llvm-project/commit/58789ed62ad462d421e5c9272f0f80105f6025bf
  Author: Andreu Carminati <andreu.carminati at hightec-rt.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

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

  Log Message:
  -----------
  [ELF] Refine warning condition for memory region assignment for non-allocatable section

The warning "ignoring memory region assignment for non-allocatable section"  should be generated under the following conditions:

* sections without SHF_ALLOC attribute and,
* presence of input sections or data commands (ByteCommand)

The goal of the change is to reduce spurious warnings that are generated for some output sections that have no input section.

Reviewed By: MaskRay, peter.smith

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




More information about the All-commits mailing list