diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
| -rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 6ece57f8e4e..03d19629fde 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -10,6 +10,7 @@ #include "Writer.h" #include "Config.h" #include "LinkerScript.h" +#include "MapFile.h" #include "Memory.h" #include "OutputSections.h" #include "Relocations.h" @@ -233,6 +234,7 @@ template <class ELFT> void Writer<ELFT>::run() { if (ErrorCount) return; + writeMapFile<ELFT>(OutputSections); if (auto EC = Buffer->commit()) error("failed to write to the output file: " + EC.message()); |

