[PATCH] D30403: [ELF] - Allow to postpone SymbolAssignment proccessing.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 04:49:55 PST 2017


grimar created this revision.

In some cases we are unable to handle SymbolAssignment instantly.
Expression may depend on offset of input section which was not set yet,
because corresponding output section command was not handled.

Patch adds a list of dependency symbols for Expr class. Before perform
assign, this list is updated and checked if all dependencies are resolved.
If not, assign expression is delayed.

This fixes PR32031.


https://reviews.llvm.org/D30403

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/OutputSections.h
  ELF/Writer.cpp
  test/ELF/linkerscript/symbols-dependency.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30403.89864.patch
Type: text/x-patch
Size: 5295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/9ad222ba/attachment.bin>


More information about the llvm-commits mailing list