diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-06-09 12:26:57 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-06-09 12:26:57 +0000 |
commit | 1840901a2ff8493ca60579298be97eda8fadbcec (patch) | |
tree | 3076066f5b0af0c80eda3ab0618a67be054321c4 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | de57795cc8b37a4a8a1d840852476255da9813b7 (diff) | |
download | bcm5719-llvm-1840901a2ff8493ca60579298be97eda8fadbcec.tar.gz bcm5719-llvm-1840901a2ff8493ca60579298be97eda8fadbcec.zip |
[ELF] - Allow producing -r output if only empty archive is given.
This is used by linux kernel build system.
(https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt "3.2 Built-in object goals")
It has for example next configuration for linking built-in.o files:
drivers-y := $(patsubst %/, %/built-in.o, $(drivers-y))
drivers-$(CONFIG_PCI) += arch/ia64/pci/
...
drivers-$(CONFIG_OPROFILE) += arch/ia64/oprofile/
Im most simple case all CONFIG_* options are off. That means linker is called with empty input archive,
emulation option and no inputs and expected to generate some relocatable output.
ld.bfd is able to do that, we dont.
Patch allows to support this case.
Differential revision: https://reviews.llvm.org/D33937
llvm-svn: 305069
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions