llvm-project/lld/test
Rui Ueyama 1ebc8ed78a ELF: Add wildcard pattern matching to SECTIONS linker script command.
Each rule in SECTIONS commands is something like ".foo *(.baz.*)",
which instructs the linker to collect all sections whose name matches
".baz.*" from all files and put them into .foo section.

Previously, we didn't recognize the wildcard character. This patch
adds that feature.

Performance impact is a bit concerning because a linker script can
contain hundreds of SECTIONS rules, and doing pattern matching against
each rule would be too expensive. We could merge all patterns into
single DFA so that it takes O(n) to the input size. However, it is
probably too much at this moment -- we don't know whether the
performance of pattern matching matters or not. So I chose to
implement the simplest algorithm in this patch. I hope this simple
pattern matcher is sufficient.

llvm-svn: 260745
2016-02-12 21:47:28 +00:00
..
COFF COFF: Update test for recent llvm-objdump change (r257539). 2016-01-12 23:29:42 +00:00
Driver Rename the gnu flavour to gnu old. 2015-11-16 08:54:19 +00:00
ELF ELF: Add wildcard pattern matching to SECTIONS linker script command. 2016-02-12 21:47:28 +00:00
LinkerScript Add PHDR and FILL parsing. 2015-05-28 00:14:58 +00:00
Unit [lit] Python 3. 2014-03-26 00:53:48 +00:00
core Delete unnecessary generality in loadFile. 2015-04-24 15:51:45 +00:00
darwin Add the GC commandline options and throw errors if they are used 2016-01-15 17:39:02 +00:00
mach-o Use __nl_symbol_ptr instead of __got in the stubs pass on x86 archs. 2016-02-09 20:11:17 +00:00
old-elf Introduce the feature 'demangler' in check-lld. Mark lld/test/old-elf/X86_64/demangle.test as REQUIRES:demangler. 2016-02-09 07:30:11 +00:00
CMakeLists.txt [MachO] Use llvm-readobj in lieu of macho-dump. 2015-09-22 17:31:01 +00:00
lit.cfg check-lld: Introduce %python. 2016-02-09 07:30:18 +00:00
lit.site.cfg.in [lit] Python 3. 2014-03-26 00:53:48 +00:00