[PATCH] D23598: [ELF] Linkerscript: support assignment outside SECTIONS

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 19:40:43 PDT 2016


phosek created this revision.
phosek added reviewers: ruiu, rafael.
phosek added a subscriber: llvm-commits.
phosek added a project: lld.

We only support assignments inside SECTIONS, but this does not matches the behavior of GNU linker which also allows them outside SECTIONS. The only restriction on assignments outside SECTIONS is that they cannot reference . (they have to be absolute expressions).

https://reviews.llvm.org/D23598

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23598.68298.patch
Type: text/x-patch
Size: 9108 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/803a47fc/attachment.bin>


More information about the llvm-commits mailing list