[PATCH] D39348: Implement --just-symbols.
Chih-Mao Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 23:40:34 PST 2017
PkmX added a comment.
If the only input file is specified as the argument of `--just-symbol`, lld will error out (`ld.bfd` accepts this):
$ riscv64-unknown-linux-gnu-ld.lld -r --just-symbols foo.o -o bar.o
riscv64-unknown-linux-gnu-ld.lld: error: no input files
riscv64-unknown-linux-gnu-ld.lld: error: target emulation unknown: -m or at least one .o file required
I'd suggest adding a separate kind of `InputFile` whose symbols only gets added to the symbol table as absolute (but don't add its sections). I have a patch that implements this if you'd like to review it.
https://reviews.llvm.org/D39348
More information about the llvm-commits
mailing list