[all-commits] [llvm/llvm-project] 31626c: [lld-macho] Add -pagezero_size

Jared Irwin via All-commits all-commits at lists.llvm.org
Sun Feb 6 10:15:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31626cc111c01a92325e36e15b012be0caab4f4c
      https://github.com/llvm/llvm-project/commit/31626cc111c01a92325e36e15b012be0caab4f4c
  Author: Jared Irwin <jrairwin at sympatico.ca>
  Date:   2022-02-06 (Sun, 06 Feb 2022)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/MachO/SyntheticSections.h
    M lld/test/MachO/lit.local.cfg
    A lld/test/MachO/pagezero.s

  Log Message:
  -----------
  [lld-macho] Add -pagezero_size

Adds `-pagezero_size`. `-pagezero_size` commonly used for kernel development.
`-pagezero_size` changes the `__PAGEZERO` size, removing that segment if it is set to zero.

One of the four flags from {D118570}
Now with error messages and tests.

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




More information about the All-commits mailing list