forked from OSchip/llvm-project
parent
2e98c045cb
commit
d54c566510
|
@ -51,9 +51,8 @@ LinkerScript *elf::Script;
|
||||||
|
|
||||||
uint64_t ExprValue::getValue() const {
|
uint64_t ExprValue::getValue() const {
|
||||||
if (Sec) {
|
if (Sec) {
|
||||||
if (Sec->getOutputSection())
|
if (OutputSection *OS = Sec->getOutputSection())
|
||||||
return alignTo(Sec->getOffset(Val) + Sec->getOutputSection()->Addr,
|
return alignTo(Sec->getOffset(Val) + OS->Addr, Alignment);
|
||||||
Alignment);
|
|
||||||
error("unable to evaluate expression: input section " + Sec->Name +
|
error("unable to evaluate expression: input section " + Sec->Name +
|
||||||
" has no output section assigned");
|
" has no output section assigned");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue