Skip to content
Commit 9dbc1ab2 authored by Markus Böck's avatar Markus Böck Committed by Martin Storsjö
Browse files

[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
parent 4a8dbc61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment