已开启
Add version script for libbase.z.so to limit exported symbols #870
Add version script for libbase.z.so to limit exported symbols #870
已开启
m0_65533854创建于 11 天前
2 个文件变更+58-0
@@ -61,6 +61,8 @@ ohos_shared_library("base") {
61 "ipc:ipc_core",61 "ipc:ipc_core",
62 ]62 ]
63 63 
64+ version_script = "libbase.map"
65+ 
64 subsystem_name = "ability"66 subsystem_name = "ability"
65 innerapi_tags = [67 innerapi_tags = [
66 "platformsdk",68 "platformsdk",
@@ -0,0 +1,56 @@
1+# Copyright (c) 2026 Huawei Device Co., Ltd.
2+# Licensed under the Apache License, Version 2.0 (the "License");
3+# you may not use this file except in compliance with the License.
4+# You may obtain a copy of the License at
5+#
6+# http://www.apache.org/licenses/LICENSE-2.0
7+#
8+# Unless required by applicable law or agreed to in writing, software
9+# distributed under the License is distributed on an "AS IS" BASIS,
10+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+# See the License for the specific language governing permissions and
12+# limitations under the License.
13+ 
14+1.0 {
15+ global:
16+ extern "C++" {
17+ /* interfaces defined in base_interfaces.h and base_obj.h */
18+ *IInterface*;
19+ *IObject*;
20+ *IBoolean*;
21+ *IChar*;
22+ *IByte*;
23+ *IShort*;
24+ *IInteger*;
25+ *ILong*;
26+ *IFloat*;
27+ *IDouble*;
28+ *IString*;
29+ *IArray*;
30+ *IPacMap*;
31+ *IUserObject*;
32+ *IRemoteObjectWrap*;
33+ *IWeakReference*;
34+ *IWeakReferenceSource*;
35+ /* implementation classes */
36+ *Object*;
37+ *Boolean*;
38+ *Byte*;
39+ *Short*;
40+ *Integer*;
41+ *Long*;
42+ *Float*;
43+ *Double*;
44+ *String*;
45+ *Char*;
46+ *UserObject*;
47+ *UserObjectBase*;
48+ *UserObjectBaseLoader*;
49+ *RemoteObjectWrap*;
50+ /* global constants */
51+ *g_IID_*;
52+ *Uuid*;
53+ };
54+ local:
55+ *;
56+};