[lld] r258723 - Avoid almost duplication in .dynamic finalize and write.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 10:41:23 PST 2016

> Size of RelocationSection is calculated in the
> RelocationSection::finalize() method. Before this commit we called the
> RelocationSection::getSize() method from the DynamicSection::writeTo()
> method and so we could be sure that size of the RelocationSection is
> calculated already. Now value of DT_PLTRELSZ depends on the order of
> finalize() calls. If RelocationSection::finalize() is called after the
> DynamicSection::finalize(), the DT_PLTRELSZ will be zero.

Is that happening on some testcase or would you just like to make the order
more explicit?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160127/ba83eee6/attachment.html>

More information about the llvm-commits mailing list