Re-implement --just-symbols as a regular object file.
authorRui Ueyama <ruiu@google.com>
Fri, 30 Mar 2018 01:15:36 +0000 (01:15 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 30 Mar 2018 01:15:36 +0000 (01:15 +0000)
commit5a67a6ec4a96df23c2b0bbcf6a608b9d36bce97a
tree2fd0787d616332bf95f7b0f95abe698c4a26f6e6
parent208fe67a7861a7db659c3849ab31b9c2e83cbfb9
Re-implement --just-symbols as a regular object file.

I tried a few different designs to find a way to implement it without
too much hassle and settled down with this. Unlike before, object files
given as arguments for --just-symbols are handled as object files, with
an exception that their section tables are handled as if they were all
null.

Differential Revision: https://reviews.llvm.org/D42025

llvm-svn: 328852
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/test/ELF/Inputs/just-symbols.s [deleted file]
lld/test/ELF/just-symbols-cref.s [new file with mode: 0644]
lld/test/ELF/just-symbols.s