[PATCH] D40129: [ELF] Fall back to search dirs for linker scripts specified with -T

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 07:44:02 PST 2017


arichardson created this revision.
Herald added a subscriber: emaste.

This matches the behaviour of ld.bfd:
https://sourceware.org/binutils/docs/ld/Options.html#Options

If scriptfile does not exist in the current directory, ld looks for it in
the directories specified by any preceding ‘-L’ options. Multiple ‘-T’
options accumulate.


https://reviews.llvm.org/D40129

Files:
  ELF/Driver.cpp
  ELF/Driver.h
  ELF/DriverUtils.cpp
  ELF/ScriptParser.cpp
  test/ELF/invalid-linkerscript.test
  test/ELF/linkerscript/linker-script-in-search-path.s
  test/ELF/linkerscript/linkerscript.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40129.123180.patch
Type: text/x-patch
Size: 5217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171116/48153a7f/attachment.bin>


More information about the llvm-commits mailing list