[all-commits] [llvm/llvm-project] b0ac68: [ELF] Prevent internalizing used comdat symbol
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Wed Dec 1 21:15:03 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0ac68ccb72909e047c86e6ee7e036d278be28ff
https://github.com/llvm/llvm-project/commit/b0ac68ccb72909e047c86e6ee7e036d278be28ff
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2021-12-02 (Thu, 02 Dec 2021)
Changed paths:
M lld/ELF/InputFiles.cpp
A lld/test/ELF/lto/comdat-mixed-archive.test
Log Message:
-----------
[ELF] Prevent internalizing used comdat symbol
When a comdat symbol is defined in both bitcode and regular object
files, which are contained in the same archive, the linker could lose
the flag that the symbol is used in the regular object file and allow
LTO to internalize it, which led to "error: undefined symbol".
The issue was introduced in D79300.
Differential Revision: https://reviews.llvm.org/D114801
More information about the All-commits
mailing list