The invention discloses a
data processing method and device, a storage medium and
electronic equipment. The method comprises the following steps: when a target process needs to load a dynamic link
library, determining a variable identifier corresponding to a target thread local storage variable needing to be accessed by a patch function and an initial position of an
assembly code according to a
code snippet associated with the patch function; according to the variable identifier, searching whether target
relocation information with the variable identifier exists in the
executable file, and if the target
relocation information is not searched, modifying an
assembly code corresponding to the local storage variable of the same-name thread according to the target offset to obtain a target
assembly code; and replacing the initial assembly code with the target assembly code, modifying the
relocation type of the local storage variable of the target thread to be relocation forbidding, and updating and loading the dynamic link
library. According to the method and the device, the technical problem of patch function loading failure caused by different addressing
modes of thread local storage variables in a conventional dynamic mode and a local
executable mode is solved.