diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-03 15:21:18 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-03 15:21:18 +0000 |
| commit | b9a1baec33e911ca24f51abf882d454e62047ea6 (patch) | |
| tree | d426cb84117bdb3ec63a7bef741444456d30e414 /ELF/LinkerScript.cpp | |
| parent | 80350c116f86dbb87e055a630b1b2be0c66b244b (diff) | |
Notes
Diffstat (limited to 'ELF/LinkerScript.cpp')
| -rw-r--r-- | ELF/LinkerScript.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ELF/LinkerScript.cpp b/ELF/LinkerScript.cpp index 75df2cd4bd5c..1ced3e8e8d71 100644 --- a/ELF/LinkerScript.cpp +++ b/ELF/LinkerScript.cpp @@ -463,12 +463,7 @@ void LinkerScript::fabricateDefaultCommands() { // Prefer user supplied address over additional alignment constraint auto I = Config->SectionStartMap.find(Sec->Name); if (I != Config->SectionStartMap.end()) - Commands.push_back( - make<SymbolAssignment>(".", [=] { return I->second; }, "")); - else if (Sec->PageAlign) - OSCmd->AddrExpr = [=] { - return alignTo(Script->getDot(), Config->MaxPageSize); - }; + OSCmd->AddrExpr = [=] { return I->second; }; Commands.push_back(OSCmd); if (Sec->Sections.size()) { |
