[PATCH] [ELF] Implement parsing `-l` prefixed items in the `GROUP` linker script command

Simon Atanasyan simon at atanasyan.com
Thu Jul 10 22:38:00 PDT 2014


Hi Bigcheese, shankarke, ruiu,

Implement parsing `-l` prefixed items in the `GROUP` linker script command. There are two forms of `-l` prefixed expression:

* -l<libname>
* -l:<filename>

In the first case a linker should construct a full library name `lib + libname + .[so|a]` and search this library as usual. In the second case a linker should use the `<filename>` as is and search this file through library search directories.

http://reviews.llvm.org/D4469

Files:
  include/lld/ReaderWriter/LinkerScript.h
  lib/Driver/GnuLdInputGraph.cpp
  lib/ReaderWriter/ELF/ELFLinkingContext.cpp
  lib/ReaderWriter/LinkerScript.cpp
  test/LinkerScript/linker-script.test
  test/elf/Inputs/group-cmd-search-3.ls
  test/elf/group-cmd-search.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4469.11308.patch
Type: text/x-patch
Size: 8481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140711/6bba5133/attachment.bin>


More information about the llvm-commits mailing list