[all-commits] [llvm/llvm-project] 9dbc1a: [LLD][COFF] Enable linking of __declspec(selectany...
zero9178 via All-commits
all-commits at lists.llvm.org
Thu Jan 23 00:55:34 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9dbc1ab23268abce5db98ad9a1e3aef89c371524
https://github.com/llvm/llvm-project/commit/9dbc1ab23268abce5db98ad9a1e3aef89c371524
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
More information about the All-commits
mailing list