Skip to content

Commit 778a194

Browse files
committed
Only restrict symbols from libstdc++
1 parent a8e0bac commit 778a194

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

cpp/src/gandiva/symbols.map

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@
1616
# under the License.
1717

1818
{
19-
global:
20-
extern "C++" {
21-
# The leading asterisk is required for symbols such as
22-
# "typeinfo for gandiva::SomeClass".
23-
# Unfortunately this will also catch template specializations
24-
# (from e.g. STL or Flatbuffers) involving Arrow types.
25-
*gandiva::*;
26-
};
27-
2819
# Symbols marked as 'local' are not exported by the DSO and thus may not
29-
# be used by client applications. Everything except the above falls here.
30-
# This ensures we hide symbols of static dependencies.
20+
# be used by client applications.
3121
local:
32-
*;
22+
# devtoolset / static-libstdc++ symbols
23+
__cxa_*;
24+
__once_proxy;
25+
26+
extern "C++" {
27+
# devtoolset or -static-libstdc++ - the Red Hat devtoolset statically
28+
# links c++11 symbols into binaries so that the result may be executed on
29+
# a system with an older libstdc++ which doesn't include the necessary
30+
# c++11 symbols.
31+
std::*;
32+
*std::__once_call*;
33+
};
3334
};
35+

0 commit comments

Comments
 (0)