[all-commits] [llvm/llvm-project] 5d37ce: [LLD][COFF] Enable linking of __declspec(selectany...
zero9178 via All-commits
all-commits at lists.llvm.org
Thu Jan 23 09:26:03 PST 2020
Branch: refs/heads/release/10.x
Home: https://github.com/llvm/llvm-project
Commit: 5d37ce7e19c9961b45bef2f2f66805f4a8f02daf
https://github.com/llvm/llvm-project/commit/5d37ce7e19c9961b45bef2f2f66805f4a8f02daf
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2020-01-23 (Thu, 23 Jan 2020)
Changed paths:
M lld/COFF/InputFiles.cpp
A lld/test/COFF/comdat-gcc-compatibility.s
Log Message:
-----------
[LLD][COFF] Enable linking of __declspec(selectany) symbols from Clang and GCC
When annotating a symbol with __declspec(selectany), Clang assigns it
comdat 2 while GCC assigns it comdat 3. This patch enables two object
files that contain a __declspec(selectany) symbol, one created by gcc
and the other by clang, to be linked together instead of issuing a
duplicate symbol error.
Differential Revision: https://reviews.llvm.org/D73139
(cherry picked from commit 9dbc1ab23268abce5db98ad9a1e3aef89c371524)
More information about the All-commits
mailing list