[lld] da374d1 - [lld-macho][nfc] Update map file sample output in comment
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 19:49:12 PDT 2022
Author: Jez Ng
Date: 2022-10-21T22:49:02-04:00
New Revision: da374d180dbdaefd7d4b111c442ac77837323511
URL: https://github.com/llvm/llvm-project/commit/da374d180dbdaefd7d4b111c442ac77837323511
DIFF: https://github.com/llvm/llvm-project/commit/da374d180dbdaefd7d4b111c442ac77837323511.diff
LOG: [lld-macho][nfc] Update map file sample output in comment
Include symbol sizes (present after {D135883}) as well as an example of
a dead-stripped symbol.
Added:
Modified:
lld/MachO/MapFile.cpp
Removed:
################################################################################
diff --git a/lld/MachO/MapFile.cpp b/lld/MachO/MapFile.cpp
index d89b080eab2a..41f72ebcb331 100644
--- a/lld/MachO/MapFile.cpp
+++ b/lld/MachO/MapFile.cpp
@@ -8,7 +8,7 @@
//
// This file implements the -map option. It shows lists in order and
// hierarchically the outputFile, arch, input files, output sections and
-// symbol:
+// symbols:
//
// # Path: test
// # Arch: x86_84
@@ -16,11 +16,14 @@
// [ 0] linker synthesized
// [ 1] a.o
// # Sections:
-// # Address Size Segment Section
-// 0x1000005C0 0x0000004C __TEXT __text
+// # Address Size Segment Section
+// 0x1000005C0 0x0000004C __TEXT __text
// # Symbols:
-// # Address File Name
-// 0x1000005C0 [ 1] _main
+// # Address Size File Name
+// 0x1000005C0 0x00000001 [ 1] _main
+// # Dead Stripped Symbols:
+// # Size File Name
+// <<dead>> 0x00000001 [ 1] _foo
//
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list