summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-06-02 01:37:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-06-02 01:37:58 +0000
commit0f7dc0e2d05d905358405592d545c4499d670d39 (patch)
treeec32b3ffd910862adc1e8da09652459b4597c93a /lld/ELF/LinkerScript.cpp
parent26115924a2146bc4888e42d600c139df8b1b9b90 (diff)
downloadbcm5719-llvm-0f7dc0e2d05d905358405592d545c4499d670d39.tar.gz
bcm5719-llvm-0f7dc0e2d05d905358405592d545c4499d670d39.zip
Run fabricateDefaultCommands before fixSectionAlignments.
This allows us to remove the PageAlign field. It will also allow moving fabricateDefaultCommands earlier. llvm-svn: 304513
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 2d1c881b71d..1ced3e8e8d7 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -464,10 +464,6 @@ void LinkerScript::fabricateDefaultCommands() {
auto I = Config->SectionStartMap.find(Sec->Name);
if (I != Config->SectionStartMap.end())
OSCmd->AddrExpr = [=] { return I->second; };
- else if (Sec->PageAlign)
- OSCmd->AddrExpr = [=] {
- return alignTo(Script->getDot(), Config->MaxPageSize);
- };
Commands.push_back(OSCmd);
if (Sec->Sections.size()) {
OpenPOWER on IntegriCloud