summaryrefslogtreecommitdiff
path: root/lld/ELF/MarkLive.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-07-26 22:52:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-07-26 22:52:53 +0000
commita5ee0018750ff29f81b3e0b5f61d812a900b49aa (patch)
treea769536bbca12f66d60deebad52f3568a52dfe19 /lld/ELF/MarkLive.cpp
parent6f16f1bb62b84f73f9599fc750aafbd6d6d968f7 (diff)
Fix the name of the section end symbol.
It is __stop_<sec>, not __end_<sec>.
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r--lld/ELF/MarkLive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp
index 968a984089c..fe1c217981b 100644
--- a/lld/ELF/MarkLive.cpp
+++ b/lld/ELF/MarkLive.cpp
@@ -253,7 +253,7 @@ template <class ELFT> void elf::markLive() {
Enqueue({Sec, 0});
else if (isValidCIdentifier(Sec->Name)) {
CNamedSections[Saver.save("__start_" + Sec->Name)].push_back(Sec);
- CNamedSections[Saver.save("__end_" + Sec->Name)].push_back(Sec);
+ CNamedSections[Saver.save("__stop_" + Sec->Name)].push_back(Sec);
}
}