[all-commits] [llvm/llvm-project] cc8229: Extract LC_CODE_SIGNATURE related implementation o...

Daniel Rodríguez Troitiño via All-commits all-commits at lists.llvm.org
Thu Sep 16 17:45:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc8229603b67763e77a46894f88f7d3ddd04de34
      https://github.com/llvm/llvm-project/commit/cc8229603b67763e77a46894f88f7d3ddd04de34
  Author: Nuri Amari <nuriamari at fb.com>
  Date:   2021-09-16 (Thu, 16 Sep 2021)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/SyntheticSections.h
    M llvm/include/llvm/Object/MachO.h
    M llvm/lib/Object/CMakeLists.txt
    A llvm/lib/Object/CodeSignatureSection.cpp

  Log Message:
  -----------
  Extract LC_CODE_SIGNATURE related implementation out of LLD

Move the functionality in lld that handles writing of the LC_CODE_SIGNATURE load command and associated data section to a central reusable location.

This change is in preparation for another change that modifies llvm-objcopy to reproduce the LC_CODE_SIGNATURE load command and corresponding
data section to maintain the validity of signed macho object files passed through llvm-objcopy.

Reviewed By: #lld-macho, int3, oontvoo

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




More information about the All-commits mailing list