[PATCH] [lld] [LinkerScript] Implement linker script expression evaluation

Rafael Auler rafaelauler at gmail.com
Sun Mar 8 18:40:50 PDT 2015


Hi ruiu, shankar.easwaran,

As suggested by Rui, I broke up the original patch in D7915 in two, separating
the part that implements the linker script expression evaluation.

The expression evaluation is needed when interpreting linker scripts, in order
to calculate the value for new symbols or to determine a new position to load
sections in memory. This patch extends Expression nodes from the linker script
AST with evaluation functions. It also contains a unit test.

http://reviews.llvm.org/D8156

Files:
  include/lld/Core/Error.h
  include/lld/ReaderWriter/ELFLinkingContext.h
  include/lld/ReaderWriter/LinkerScript.h
  lib/Core/Error.cpp
  lib/ReaderWriter/LinkerScript.cpp
  unittests/DriverTests/GnuLdDriverTest.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8156.21465.patch
Type: text/x-patch
Size: 10273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150309/f49f3056/attachment.bin>


More information about the llvm-commits mailing list