]> granicus.if.org Git - llvm/commit
Add a linker script to version LLVM symbols
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 17 Apr 2017 20:51:50 +0000 (20:51 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 17 Apr 2017 20:51:50 +0000 (20:51 +0000)
commitcd789d8cfe12aa374e66eafc748f4fc06e149ca7
treea0ba4865ed5a9c1465fad27258f3fdc902394a1d
parent61710dfa3ab1cec87b34ad912d50e0cba6e9a39c
Add a linker script to version LLVM symbols

Summary:
This patch adds a very simple linker script to version the lib's symbols
and thus trying to avoid crashes if an application loads two different
LLVM versions (as long as they do not share data between them).

Note that we deliberately *don't* make LLVM_5.0 depend on LLVM_4.0:
they're incompatible and the whole point of this patch is
to tell the linker that.

Avoid unexpected crashes when two LLVM versions are used in the same process.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Author: Lisandro Damían Nicanor Pérez Meyer <lisandro@debian.org>
Author: Sylvestre Ledru <sylvestre@debian.org>
Bug-Debian:  https://bugs.debian.org/848368

Reviewers: beanz, rnk

Reviewed By: rnk

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D31524

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300496 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt
tools/llvm-shlib/simple_version_script.map.in [new file with mode: 0644]