[PATCH] D22852: [ELF] - Linkerscript: implemented filename specification.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 04:31:37 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, davide, emaste, evgeny777.

Scripts can contain something like:
KEEP (*crtbegin.o(.ctors))

What means that "*crtbegin.o" is a wildcard of file to take the sections from.
This is some kind of opposite to EXCLUDE_FILE and used in FreeBSD script:
https://svnweb.freebsd.org/base/head/sys/conf/ldscript.amd64?revision=284870&view=markup#l122

Patch implements this.

Patch partially relies on changes from D22749 that changed the way of parsing
LS script a bit. So I would suggest to start reviewing from D22749 and
then I can rebase this one.

https://reviews.llvm.org/D22852

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript/Inputs/linkerscript-filename-spec.s
  test/ELF/linkerscript/linkerscript-filename-spec.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22852.65704.patch
Type: text/x-patch
Size: 7508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160727/0bb34e34/attachment.bin>


More information about the llvm-commits mailing list