发明名称 Method and system for using a ROM patch
摘要 A method and system for using a ROM patch are provided. In one embodiment, a computing device obtains an original assembly code and a modified assembly code which is a modified version of the original assembly code, the original assembly code being used for an executable code which is stored in a ROM of a device. The computing device compares the original assembly code and the modified assembly code to identify difference(s) in the modified assembly code with respect to the original assembly code. The computing device then compiles the difference(s) (sometimes, after adjusting the differences) and generates a ROM patch by converting the compiled difference(s) into a replacement executable code for some of the executable code stored in the ROM of the device. In another embodiment, a method and system for using a ROM patch are disclosed.
申请公布号 US9626179(B2) 申请公布日期 2017.04.18
申请号 US201414336528 申请日期 2014.07.21
申请人 SanDisk Technologies LLC 发明人 Bar-Or Shahar
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 Brinks Gilson & Lione 代理人 Brinks Gilson & Lione
主权项 1. A method for using a read-only memory (ROM) patch, the method comprising: performing the following in a device comprising read-only memory (ROM) storing executable code: analyzing an address in a command to read a line of the executable code from the ROM to determine if the address is in a ROM patch table;in response to determining that the address is not in the ROM patch table, reading the line of the executable code from the address in the ROM; andin response to determining that the address is in the ROM patch table, reading a replacement address in a ROM patch instead of reading the line of the executable code from the address in the ROM, wherein the replacement address is specified in the ROM patch table;wherein the ROM patch is generated by: obtaining an original assembly code and a modified assembly code which is a modified version of the original assembly code, the original assembly code being used for an executable code which is stored in the ROM of the device;comparing the original assembly code and the modified assembly code to identify difference(s) in the modified assembly code with respect to the original assembly code;compiling the difference(s);converting the compiled difference(s) into a replacement executable code for some of the executable code stored in the ROM of the device; andmodifying an address in a jump command in the modified executable code to point to an address in the original assembly code, if the address in the original assembly code contains the same data as the address in the jump command.
地址 Plano TX US