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