Conley Rose, P.C.
Method and apparatus for detecting code change
The present disclosure provides a method and an apparatus for detecting a code change. The method includes adding a tag to a function to be changed in a source code, and compiling the source code to acquire, according to the tag, position information and relocation information of the function to be changed in the compiled source code. In embodiments of the present disclosure, a tag is added to a function to be changed, a source code is compiled into a binary file, and position information and relocation information of the function to be changed in the binary file are acquired by using the tag, so that in subsequent operations, a hot patch file modifies, according to the position information and the relocation information, the function to be changed in software.
HUAWEI TECHNOLOGIES CO., LTD.
G G G G G
G06F G06F G06F G06F G06F
inventional inventional inventional inventional inventional
Jun
Li