aboutsummaryrefslogtreecommitdiffstats
path: root/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-22 19:44:12 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-22 19:44:12 +0000
commitc53addf38e24e4dafe992aafb3ae928bfa8fdb0a (patch)
tree5a8f08e745d2dbfdd66c9e4838a8b7eeb7f0453f /ELF/LinkerScript.cpp
parent2dcc0c5ee66570f02392d1fbf29f573fa47258f8 (diff)
downloadsrc-c53addf38e24e4dafe992aafb3ae928bfa8fdb0a.tar.gz
src-c53addf38e24e4dafe992aafb3ae928bfa8fdb0a.zip
Vendor import of lld trunk r303571:vendor/lld/lld-trunk-r303571
Notes
Notes: svn path=/vendor/lld/dist/; revision=318671 svn path=/vendor/lld/lld-trunk-r303571/; revision=318672; tag=vendor/lld/lld-trunk-r303571
Diffstat (limited to 'ELF/LinkerScript.cpp')
-rw-r--r--ELF/LinkerScript.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/ELF/LinkerScript.cpp b/ELF/LinkerScript.cpp
index 161909abf00d..c303f0524ad4 100644
--- a/ELF/LinkerScript.cpp
+++ b/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;