Layout adjustment method for dynamic library, and related device
Patent Information
- Application Number
- PCT/CN2024/079256
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-31
- Filing Date
- 2024-02-29
- Publication Date
- 2025-03-06
AI Technical Summary
When performing miniaturization of dynamic libraries in the prior art, although useless code can be deleted through the gc-sections function, there are still redundant symbols, resulting in lower returns on miniaturization of software.
By determining the first symbol and its reference relationship used by the executable file of the software package in the dynamic library, configuring the layout adjustment strategy of the dynamic library, including deleting symbols other than the first symbol and the second symbol or performing hierarchical splitting based on the call frequency, and re-linking operations to achieve miniaturization.
Accurately identify the usage of symbols in dynamic libraries by executable files, avoiding the existence of redundant symbols in dynamic libraries, improving the benefits of software miniaturization, and not affecting the normal operation of executable files.
Smart Images

Figure CN2024079256_06032025_PF_FP_ABST
Abstract
Citation Information
Patent Citations
Dynamic library loading optimization method based on minimum symbol redundancy
CN116643812A
Link-time redundant code elimination using functional equivalence
US20090241098A1