Prefer common over weak linkage when linking.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Sep 2014 14:27:09 +0000 (14:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Sep 2014 14:27:09 +0000 (14:27 +0000)
commitec8b573e549b532b253c752e9d50cfbbc933ab51
treed51432e078ab8718246b716c90c038af2daa30da
parentefed46fe31dad91ccb11fc01072c46f696abe88c
Prefer common over weak linkage when linking.

This matches the behavior of ELF linkers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217443 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp
test/Linker/Inputs/linkage2.ll [new file with mode: 0644]
test/Linker/linkage2.ll [new file with mode: 0644]