summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-06-09 12:26:57 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-06-09 12:26:57 +0000
commit1840901a2ff8493ca60579298be97eda8fadbcec (patch)
tree3076066f5b0af0c80eda3ab0618a67be054321c4 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentde57795cc8b37a4a8a1d840852476255da9813b7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud