[all-commits] [llvm/llvm-project] 811cbf: [lld][ELF] Implement –print-memory-usage

Petr Hosek via All-commits all-commits at lists.llvm.org
Thu May 25 00:14:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 811cbfc26233587f01f1b7b8cdeb8200747c366a
      https://github.com/llvm/llvm-project/commit/811cbfc26233587f01f1b7b8cdeb8200747c366a
  Author: Petr Hosek <phosek at google.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/Options.td
    M lld/ELF/Writer.cpp
    A lld/test/ELF/linkerscript/print-memory-usage.s

  Log Message:
  -----------
  [lld][ELF] Implement –print-memory-usage

This option was introduced in GNU ld in
https://sourceware.org/legacy-ml/binutils/2015-06/msg00086.html and is
often used in embedded development. This change implements this option
in LLD matching the GNU ld output verbatim.

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




More information about the All-commits mailing list