llvm-project/lld/test/elf
Simon Atanasyan ffc1c6af49 [ELF] Fix the file look up algorithm used in the linker script GROUP command.
In general the linker scripts's GROUP command works like a pair
of command line options --start-group/--end-group. But there is
a difference in the files look up algorithm.

The --start-group/--end-group commands use a trivial approach:
a) If the path has '-l' prefix, add 'lib' prefix and '.a'/'.so'
   suffix and search the path through library search directories.
b) Otherwise, use the path 'as-is'.

The GROUP command implements more compicated approach:
a) If the path has '-l' prefix, add 'lib' prefix and '.a'/'.so'
   suffix and search the path through library search directories.
b) If the path does not have '-l' prefix, and sysroot is configured,
   and the path starts with the / character, and the script being
   processed is located inside the sysroot, search the path under
   the sysroot. Otherwise, try to open the path in the current
   directory. If it is not found, search through library search
   directories.

https://www.sourceware.org/binutils/docs-2.24/ld/File-Commands.html

The patch reviewed by Shankar Easwaran, Rui Ueyama.

llvm-svn: 207769
2014-05-01 16:22:08 +00:00
..
Hexagon [ELF] Dont generate PHDR when creating dynamic libraries. 2014-02-19 23:46:13 +00:00
Inputs [ELF] Fix the file look up algorithm used in the linker script GROUP command. 2014-05-01 16:22:08 +00:00
Mips [Mips] Follow-up to the r207744. Replace numerical e_flags constants by their names. 2014-05-01 11:10:47 +00:00
X86_64 [ELF] Fix typo that caused a test to fail on FreeBSD. 2014-04-17 23:38:01 +00:00
linkerscript [ELF] Return error from invalid linker script parse. 2013-10-10 16:59:53 +00:00
options Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
abs-dup.objtxt Accept and handle absolute symbols with empty name. 2014-02-06 07:35:16 +00:00
abs.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
allowduplicates.objtxt [ELF] Add -z muldefs option. 2014-04-02 03:57:37 +00:00
archive-elf-forceload.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
archive-elf.test Add missing triples so that these tests pass on 32 bit arch. 2014-01-09 00:07:20 +00:00
branch.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
check.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
checkrodata.test [lld][ELF] Fix the readonly section order. 2013-09-12 15:43:13 +00:00
common.test This is my Driver refactoring patch. 2013-04-04 18:59:24 +00:00
defsym.objtxt [ELF] Support --defsym=<symbol>=<symbol>. 2014-04-16 20:58:57 +00:00
dynamic-segorder.test [ELF] TBSS section has to be special cased so that it doesnot occupy memory space 2013-06-12 00:32:32 +00:00
dynamic-undef.test Spelling corrections. 2014-03-27 22:11:58 +00:00
dynamic.test [ELF] Implement .{init,fini}_array ordering. 2013-10-25 23:59:06 +00:00
eh_frame_hdr.test [ELF] Implement minimal support for .eh_frame_hdr. 2013-10-30 00:02:04 +00:00
entry.objtxt Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
gotpcrel.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
group-cmd-search.test [ELF] Fix the file look up algorithm used in the linker script GROUP command. 2014-05-01 16:22:08 +00:00
hexagon-quickdata-sort.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
hexagon-quickdata-sortcommon.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
ifunc.test [ELF] change LayoutBefore Reference to InGroup Reference 2014-02-03 04:01:14 +00:00
ignore-unknownoption.test [Gnu] Ignore unknown arguments, and print message. 2013-11-25 04:22:11 +00:00
init_array-order.test [ELF] Implement .{init,fini}_array ordering. 2013-10-25 23:59:06 +00:00
init_array.test This is my Driver refactoring patch. 2013-04-04 18:59:24 +00:00
librarynotfound.test [lld][InputGraph] Change the Resolver to use inputGraph 2013-10-07 02:47:09 +00:00
mergeatoms.test Add missing triples so that these tests pass on 32 bit arch. 2014-01-09 00:07:20 +00:00
mergeconstants.test [ELF] change LayoutBefore Reference to InGroup Reference 2014-02-03 04:01:14 +00:00
mergeglobalatoms.test [lld][LinkingContext][ELF] Allow different output file types. 2013-09-23 04:24:15 +00:00
phdr.test Linking of shared libraries for MIPS little-endian 32-bit target. 2013-12-15 12:57:28 +00:00
ppc.test Revert "r193300 - [PassManager] add ReaderWriter{Native, YAML} to the Driver" 2013-10-24 18:22:16 +00:00
quickdata.test [ELF] Fix uninitalized value. 2013-10-03 19:25:34 +00:00
reloc.test [ELF] change LayoutBefore Reference to InGroup Reference 2014-02-03 04:01:14 +00:00
responsefile.test [ELF] Support response file. 2014-03-28 19:34:34 +00:00
rodata.test This is my Driver refactoring patch. 2013-04-04 18:59:24 +00:00
roundtrip.test REQUIRES: debug doesn't actually do anything! 2013-12-20 22:01:26 +00:00
sections.test [ELF] Fix uninitalized value. 2013-10-03 19:25:34 +00:00
soname.test Output soname. 2013-09-14 19:53:51 +00:00
stripped-empty.test Fix handling of files without a symbol table. 2013-06-07 21:08:19 +00:00
symbols.test [ELF] Dont generate PHDR when creating dynamic libraries. 2014-02-19 23:46:13 +00:00
tls.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
tlsAddr.test Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
undef-from-main-dso.test Add explictly exported atoms and export R_*_COPY'ed atoms. 2013-11-08 21:04:20 +00:00
weaksym.test A weak reference to a symbol that is only weakly referenced in 2013-09-03 12:06:33 +00:00
x86-64-dynamic-relocs.test [lld][LinkingContext][ELF] Allow different output file types. 2013-09-23 04:24:15 +00:00
x86-64-dynamic.test [ELF] Refactor x86-64 relocation pass. 2013-10-24 22:46:48 +00:00
x86.test [lld][LinkingContext][ELF] Allow different output file types. 2013-09-23 04:24:15 +00:00
x86_64-kinds.test [lld][LinkingContext][ELF] Allow different output file types. 2013-09-23 04:24:15 +00:00