Dynamic library processing method and device
The invention provides a dynamic library processing method and device, electronic equipment and a storage medium, and the method comprises the steps: after an application loads a target dynamic library to a second virtual address space, whether memory mapping information is stored in a memory is jud...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
15.12.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention provides a dynamic library processing method and device, electronic equipment and a storage medium, and the method comprises the steps: after an application loads a target dynamic library to a second virtual address space, whether memory mapping information is stored in a memory is judged, and the memory mapping information comprises an initial address and a size of memory mapping; and if memory mapping information is stored in the memory, mapping target data in the target dynamic library to a memory region corresponding to the memory mapping information through memory mapping, the target data comprises read-only data obtained by processing a global offset table in a read-write data segment of the target dynamic library by utilizing a stack address randomization technology, and the memory space consumption can be reduced through the scheme.
本申请提供了一种动态库处理方法和装置、电子设备及存储介质,方法包括:在应用将目标动态库加载到第二虚拟地址空间后,判断内存中是否存储有内存映射的信息,其中,所述内存映射的信息包括内存映射的起始地址和大小;若内存中存储有内存映射的信息,则通过内存映射将所述目标动态库中的目标数据映射到所述内存映射的信息对应的内存区域, |
---|---|
Bibliography: | Application Number: CN202311512680 |