[PATCH] D35945: [ELF] - Linkerscript: better disgnostic for INPUT/GROUP commands.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 08:39:21 PDT 2017


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

Imagine we have script with following line:

`INPUT(no_such_file)`

Previously we would report next error: "cannot open no_such_file: No such file
or directory". It provides no information that file was tried to be opened from
linker script.  And it is confusing, because some times we have regular inputs that
looks like libraries, for example `libm.so`, but they are linker scripts inside.
It is hard to find where error is coming from without debugging.

Patch adds reporting of script file name.


https://reviews.llvm.org/D35945

Files:
  ELF/Driver.cpp
  ELF/Driver.h
  ELF/ScriptParser.cpp
  test/ELF/linkerscript/group.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35945.108480.patch
Type: text/x-patch
Size: 6888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170727/d54530fe/attachment.bin>


More information about the llvm-commits mailing list