[PATCH] D39348: Implement --just-symbols.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 03:28:47 PST 2017
grimar added a comment.
In https://reviews.llvm.org/D39348#950733, @PkmX wrote:
> 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.
What is your use case to specify only single --just-symbol file ?
https://reviews.llvm.org/D39348
More information about the llvm-commits
mailing list