Method and device for dynamically loading relocatable file
Abstract
The disclosure provides a method for dynamically loading a relocatable file, comprising: analyzing the relocatable file; searching for a relocation section according to the information obtained through the analysis; obtaining a relocation target address after the relocation section is found and calculating an address to be relocated and a skipping distance; determining whether the skipping distance exceeds a range of a short skipping, and if the skipping distance does not exceed the range of the short skipping, then writing the relocation target address into the address to be relocated to perform relocation loading; if the skipping distance exceeds the range of the short skipping, then adding a veneer code segment and making the skipping whose distance exceeds the range of the short skipping indirectly skip to the relocation target address to perform relocation loading. Accordingly, the disclosure provides a device for dynamically loading a relocatable file, comprising: an analyzing module, a calculating module, a searching module, a determining module, and a relocation dynamic loading module. With the solution, dynamically loading a relocatable file can be realized when the callin
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for modifying a dynamic application file in a mobile terminal, comprising: downloading another dynamic application file, which is a relocatable file, to the mobile terminal; dynamically loading the relocatable file, including: analyzing the relocatable file, searching for a relocation section according to information obtained through the analysis, and obtaining a relocation target address after the relocation section is found and calculating an address to be relocated and a skipping distance; determining whether the skipping distance exceeds a range of a short skipping, if the skippin
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,268,465 B2 | Executing local function call site optimization | 2019 | 0 |
| US 11,200,070 B2 | Dynamic-link library usage based on memory size | 2021 | 0 |
References Cited — Backward Prior Art (25)
Non-Patent Literature (5)
- Adam Dunkels, Niclas Finne, Joakim Eriksson, and Thiemo Voigt-"Run-time dynamic linking for reprogramming wireless sensor networks"-Proceeding SenSys '06 Proceedings of the 4th international conference on Embedded networked sensor systems-Nov. 1-3, 2006-pp. 15-28.
- Adam Dunkels, Niclas Finne, Joakim Eriksson, and Thiemo Voigt—"Run-time dynamic linking for reprogramming wireless sensor networks"—Proceeding SenSys '06 Proceedings of the 4th international conference on Embedded networked sensor systems—Nov. 1-3, 2006—pp. 15-28.
- Adam et al.-"Run-time Dynamic Linking for Reprogramming Wire less Sensor Networks"-Proceedings of the 4th International Conference on Embedded Networked Systems-SunSys '06 Nov. 1-3, 2006, ACM 2006 (pp. 15-28).
- Adam et al.—"Run-time Dynamic Linking for Reprogramming Wire less Sensor Networks"—Proceedings of the 4th International Conference on Embedded Networked Systems—SunSys '06 Nov. 1-3, 2006, ACM 2006 (pp. 15-28).
- English Translation of the Written Opinion of the International Search Authority in international application No. PCT/CN2010/075368, mailed on Nov. 25, 2010.