Invention Grant
- Patent Title: Method and apparatus for detecting code change
- Patent Title (中): 用于检测代码变化的方法和装置
-
Application No.: US14088658Application Date: 2013-11-25
-
Publication No.: US09342285B2Publication Date: 2016-05-17
- Inventor: Jun Li
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: Huawei Technologies Co., Ltd.
- Current Assignee: Huawei Technologies Co., Ltd.
- Current Assignee Address: CN Shenzhen
- Agency: Conley Rose, P.C.
- Agent Grant Rodolph
- Priority: CN201210504577 20121130
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45 ; G06F9/445

Abstract:
The present invention 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 invention, 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.
Public/Granted literature
- US20140157232A1 Method and Apparatus for Detecting Code Change Public/Granted day:2014-06-05
Information query