[PATCH] D44516: [ELF] - Treat --just-symbols file as an input.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 15 07:21:58 PDT 2018


grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.

This is PR36737.

Patch changes --just-symbols implementation so that we
count such files as inputs now.

Reimplementation also grants additional benefits. Now
--just-symbols file is added to `Files` and `ObjectFiles` just as
a regular input file.

With that, it not only allows our code to infer the ELF target automatically 
(without additional changes) but also let the rest of LLD code to do its job too. 
For example, I added test case showing we are able now to report symbols from
just symbols file with  --cref.


https://reviews.llvm.org/D44516

Files:
  ELF/Driver.cpp
  ELF/Driver.h
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  ELF/ScriptParser.cpp
  test/ELF/invalid/executable.s
  test/ELF/just-symbols-cref.s
  test/ELF/just-symbols-input.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44516.138544.patch
Type: text/x-patch
Size: 11417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180315/edae3c9c/attachment.bin>


More information about the llvm-commits mailing list