[PATCH] D150644: [lld][ELF] Implement –print-memory-usage

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 00:25:45 PDT 2023


phosek created this revision.
phosek added reviewers: MaskRay, peter.smith.
Herald added subscribers: arichardson, emaste.
Herald added a project: All.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150644

Files:
  lld/ELF/Config.h
  lld/ELF/Driver.cpp
  lld/ELF/LinkerScript.cpp
  lld/ELF/LinkerScript.h
  lld/ELF/Options.td
  lld/ELF/Writer.cpp
  lld/test/ELF/linkerscript/print-memory-usage1.s
  lld/test/ELF/linkerscript/print-memory-usage2.s
  lld/test/ELF/linkerscript/print-memory-usage3.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150644.522462.patch
Type: text/x-patch
Size: 5874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230516/9b6ae63e/attachment.bin>


More information about the llvm-commits mailing list