[PATCH] D19190: [ELF] - Implemented PROVIDE linker script command.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 07:30:25 PDT 2016


grimar updated this revision to Diff 54367.
grimar added a comment.

- Addressed review comments.

Changed addAbsolute to addSynthetic as was suggested by Rafael. That allows to add provide symbols early without updating symbols values during assignaddress. 
I introduced next limitation for that: provide expression can't be anything except assign location counter. i.e only "xxx = ." is valid. And since
only provides inside output description sections are now allowed, that helps to avoid storing symbols in array for futher modification.
And it still covers the needs of script files I saw, so it should be reasonable simplification.


http://reviews.llvm.org/D19190

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/Writer.cpp
  test/ELF/linkerscript-provide.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19190.54367.patch
Type: text/x-patch
Size: 10093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160420/603ecb9e/attachment.bin>


More information about the llvm-commits mailing list