commit | 7252ae52cf760f65f8795187131b585c2e51df71 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Thu Sep 22 12:00:08 2016 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Thu Sep 22 12:00:08 2016 +0000 |
tree | 28b8285a437f27200a136832d2404af65fa26290 | |
parent | 12068d86c3f8dcb73c957c2ff5fa460fea4182b5 [diff] [blame] |
Handle multiple .tbss sections. llvm-svn: 282147
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index a8ed925..7edfaca 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -373,7 +373,9 @@ // .foo { *(.aaa) a = SIZEOF(.foo); *(.bbb) } CurOutSec->setSize(Pos - CurOutSec->getVA()); - if (!IsTbss) + if (IsTbss) + ThreadBssOffset = Pos - Dot; + else Dot = Pos; }