forked from OSchip/llvm-project
parent
29b240c671
commit
71f840672d
|
@ -466,11 +466,11 @@ void LinkerScript::addOrphanSections(OutputSectionFactory &Factory) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t LinkerScript::advance(uint64_t Size, unsigned Align) {
|
uint64_t LinkerScript::advance(uint64_t Size, unsigned Alignment) {
|
||||||
bool IsTbss =
|
bool IsTbss =
|
||||||
(Ctx->OutSec->Flags & SHF_TLS) && Ctx->OutSec->Type == SHT_NOBITS;
|
(Ctx->OutSec->Flags & SHF_TLS) && Ctx->OutSec->Type == SHT_NOBITS;
|
||||||
uint64_t Start = IsTbss ? Dot + Ctx->ThreadBssOffset : Dot;
|
uint64_t Start = IsTbss ? Dot + Ctx->ThreadBssOffset : Dot;
|
||||||
Start = alignTo(Start, Align);
|
Start = alignTo(Start, Alignment);
|
||||||
uint64_t End = Start + Size;
|
uint64_t End = Start + Size;
|
||||||
|
|
||||||
if (IsTbss)
|
if (IsTbss)
|
||||||
|
|
Loading…
Reference in New Issue