diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-05-18 21:30:14 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-05-18 21:30:14 +0000 |
| commit | a46f688e8f4d90444e3537f046cac2e7c67120b3 (patch) | |
| tree | 7798f9dd26d63ebcf7cdd6b76bca9e1570596889 /lld/ELF/LinkerScript.cpp | |
| parent | 795de8a7bdb5443a0196dcb9158a30ad6d68ab61 (diff) | |
| download | bcm5719-llvm-a46f688e8f4d90444e3537f046cac2e7c67120b3.tar.gz bcm5719-llvm-a46f688e8f4d90444e3537f046cac2e7c67120b3.zip | |
Use linker script commands in writeMapFile.
This converts the last (chronologically) user of OutputSections to use
the linker script commands instead.
The idea is to convert all uses after fabricateDefaultCommands, so
that we have a single representation.
llvm-svn: 303384
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 161909abf00..c303f0524ad 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -440,9 +440,6 @@ void LinkerScript::fabricateDefaultCommands() { // For each OutputSection that needs a VA fabricate an OutputSectionCommand // with an InputSectionDescription describing the InputSections for (OutputSection *Sec : *OutputSections) { - if (!(Sec->Flags & SHF_ALLOC)) - continue; - auto *OSCmd = make<OutputSectionCommand>(Sec->Name); OSCmd->Sec = Sec; SecToCommand[Sec] = OSCmd; |

