diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:03:47 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:04:23 +0000 |
| commit | 7fa27ce4a07f19b07799a767fc29416f3b625afb (patch) | |
| tree | 27825c83636c4de341eb09a74f49f5d38a15d165 /lld/ELF/MapFile.cpp | |
| parent | e3b557809604d036af6e00c60f012c2025b59a5e (diff) | |
Diffstat (limited to 'lld/ELF/MapFile.cpp')
| -rw-r--r-- | lld/ELF/MapFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp index e28656cd38dc..1b6dfcc57176 100644 --- a/lld/ELF/MapFile.cpp +++ b/lld/ELF/MapFile.cpp @@ -157,7 +157,7 @@ static void writeMapFile(raw_fd_ostream &os) { os << right_justify("VMA", w) << ' ' << right_justify("LMA", w) << " Size Align Out In Symbol\n"; - OutputSection* osec = nullptr; + OutputSection *osec = nullptr; for (SectionCommand *cmd : script->sectionCommands) { if (auto *assign = dyn_cast<SymbolAssignment>(cmd)) { if (assign->provide && !assign->sym) @@ -263,7 +263,7 @@ void elf::writeMapAndCref() { // Open a map file for writing. std::error_code ec; StringRef mapFile = config->mapFile.empty() ? "-" : config->mapFile; - raw_fd_ostream os(mapFile, ec, sys::fs::OF_None); + raw_fd_ostream os = ctx.openAuxiliaryFile(mapFile, ec); if (ec) { error("cannot open " + mapFile + ": " + ec.message()); return; |
