[PATCH] D22625: [ELF] Support PROVIDE and PROVIDE_HIDDEN within SECTIONS {} block

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 05:34:22 PDT 2016


evgeny777 created this revision.
evgeny777 added a reviewer: ruiu.
evgeny777 added subscribers: grimar, ikudrin, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.

Basic support for PROVIDE and PROVIDE_HIDDEN, currently only within SECTIONS

The existing parser does not validate expressions. To support PROVIDE(sym = expr), I implemented simple simple correctness validation based on brace counter. It aborts
reading expression tokens, if extra ')' is seen. This changed error message in one of the tests

Repository:
  rL LLVM

https://reviews.llvm.org/D22625

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript-locationcounter.s
  test/ELF/linkerscript-symbols.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22625.64862.patch
Type: text/x-patch
Size: 6886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160721/55f708d2/attachment.bin>


More information about the llvm-commits mailing list