Files
CheerfulRicky 17391e3a3b fix(napi/ani): fix hidden symbol exports in version scripts
Critical fix: libnotification_subscriber_extension_ani.map exported
ANI_Constructor (non-existent) instead of
OHOS_STS_NotificationSubscriberExtension_Creation which is the dlsym
symbol expected by NotificationSubscriberExtensionModuleLoader. Added
the missing extern "C" factory function in sts_notification_subscriber_extension.cpp.

Other fixes:
- Remove dead napi_module exports from NAPI module maps (the actual
  variable is _module; registration works via __attribute__((constructor)))
- Add vtable/typeinfo/VTT export patterns to module .so maps for CFI
  cross-dso virtual call safety on IPC callback classes
- Clean up redundant patterns in common library maps (*Common*,
  *NotificationManagerSts*, *NotificationSubScribeSts*, *ReminderAgentNapi*)
- Remove orphaned libnotification_subscriber_extension.map (not referenced
  in BUILD.gn)

Co-Authored-By: Agent
Signed-off-by: CheerfulRicky <yuegang7@h-partners.com>
Change-Id: I6ba01c5568862e5827d56efe5cbacfd593069c50
2026-07-23 20:49:08 +08:00

29 lines
1.1 KiB
Plaintext

# Copyright (c) 2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ROM size optimization: version_script for libnotification.z.so.
# No entry symbol export needed — module registration works via
# __attribute__((constructor)) in init.cpp which runs via .init_array,
# independent of symbol visibility. vtable/typeinfo exported for CFI
# cross-dso virtual calls on IPC callback classes (JsAnsDialogCallback,
# DistributedOperationCallback) defined in this .so [PR#4766].
1.0 {
global:
*vtable*for*;
*typeinfo*for*;
*VTT*for*;
local:
*;
};