[all-commits] [llvm/llvm-project] 8cdf1c: [ELF] Support the "read-only" memory region attribute

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue Nov 23 21:18:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cdf1c1edb937b192d162f299127fad8d9dc0faa
      https://github.com/llvm/llvm-project/commit/8cdf1c1edb937b192d162f299127fad8d9dc0faa
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2021-11-24 (Wed, 24 Nov 2021)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/ScriptParser.cpp
    A lld/test/ELF/linkerscript/memory-attr.test

  Log Message:
  -----------
  [ELF] Support the "read-only" memory region attribute

The attribute 'r' allows (or disallows for the negative case) read-only
sections, i.e. ones without the SHF_WRITE flag, to be assigned to the
memory region. Before the patch, lld could put a section in the wrong
region or fail with "error: no memory region specified for section".

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




More information about the All-commits mailing list