add_symbols_versioning
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 26 Apr 2017 21:13:02 +0000 (21:13 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 26 Apr 2017 21:13:02 +0000 (21:13 +0000)
commit7531574835ec7696f302ba5e2ce53ce154ec681d
treecdf0e2e5a0cc31485fba1f7c748f313543412fda
parentbbe23058b064ccf48c23144b21461b0a20073017
add_symbols_versioning

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_3.9 depend on LLVM_3.8:
they're incompatible and the whole point of this patch is
to tell the linker that.

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

Gbp-Pq: Name add_symbols_versioning.patch
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt
tools/llvm-shlib/simple_version_script.map [new file with mode: 0644]