JPS6324326A - Patch registering system - Google Patents

Patch registering system

Info

Publication number
JPS6324326A
JPS6324326A JP61168623A JP16862386A JPS6324326A JP S6324326 A JPS6324326 A JP S6324326A JP 61168623 A JP61168623 A JP 61168623A JP 16862386 A JP16862386 A JP 16862386A JP S6324326 A JPS6324326 A JP S6324326A
Authority
JP
Japan
Prior art keywords
patch
address
symbol
patched
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61168623A
Other languages
Japanese (ja)
Inventor
Nobuko Hayashida
林田 伸子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61168623A priority Critical patent/JPS6324326A/en
Publication of JPS6324326A publication Critical patent/JPS6324326A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce the correction mistake of a patch by containing a symbolic expression and an actual address correspondence table in a program to be patched. CONSTITUTION:A patch 3 is inputted, the symbol 21 of a symbol actual address correspondence table 2 is read out successively by an address converting means 4, compared with the symbol 31 of the inputted patch 3, and that which coincides is retrieved. Subsequently, the actual address of the symbol which has coincided is read out of the correspondence table 2, and a patch address in a program body 6 is obtained by an address conversion from an offset which is inputted. By the obtained patch address and the inputted patch data, a patch turn-on means 5 patches the data in the patch address of the program body 6, to the inputted patch data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、パッチ登録方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a patch registration method.

〔従来の技術〕[Conventional technology]

従来のパッチ登録方式はパ・ソチに被パッチプログラム
の実アドレスとパッチする内容とを含んでいたため、被
パ・ノチプログラムの一部が修正されるとパッチしよう
としていた実アドレスが変更されてしまう事があり、そ
のようなときにはパッチ作成者はその実アドレスが変更
されるたびに新しくパッチを作成し投入していた。
In the conventional patch registration method, the actual address of the patched program and the content to be patched were included in the patch, so if a part of the patched program was modified, the real address to be patched would be changed. In such cases, the patch creator would create and submit a new patch every time the real address was changed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のパッチ登録方式は、パッチ自身に被パッ
チプログラムの実アドレスをよんでいたために、披パッ
チプログラムの一部を修正すると修正部分の実アドレス
が変更されてしまう上、パッチしようとしていた部分の
実アドレスまでも変更されてしまう可能性がある為パッ
チ作成者は再び実アドレスを確認し、もしパッチしよう
としていた実アドレスに変更があれば、そのパッチを再
作成する必要が生じるという問題点があり、また1つの
プログラムに対して複数枚のパッチが存在する場合、そ
れらの修正に要する工数は多大であり、かつ修正ミス等
も発生してしまうという問題点がある。
In the conventional patch registration method described above, the patch itself reads the real address of the patched program, so if a part of the patch program is modified, the real address of the modified part is changed, and the patch is attempted to be patched. Since there is a possibility that even the real address of the patch may be changed, the patch creator must check the real address again, and if the real address they were trying to patch changes, they will have to re-create the patch. In addition, if there are a number of patches for one program, a large number of man-hours are required to correct them, and correction errors may occur.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のパッチ登録方式は、複数の部分プログラムから
なる被パッチプログラムへのバッチ登録方式において、
前記部分プログラムを特定するシンボルと対応する前記
部分プログラムの実アドレスとを対にして格納するシン
ボル実アドレス対応表を用意し、パッチすべき部分プロ
グラムのシンボルと該部分プログラム内のパッチすべき
位置を指定する情報とを含む仮想アドレス情報とパッチ
データとを入力し、前記仮想アドレス中のシンボルと一
致する前記シンボル実アドレス対応表中のシンボルを検
索して該シンボルに対応する実アドレスと前記入力され
た仮想アドレス情報中のアドレス情報とからアドレス変
換によりパ・・lチすべき実アドレスを計算し、前記パ
ッチすべき実71〜レスと前記入力されたパッチデータ
とにより前記被バ・ソチプログラムのパッチを行なって
構成される。
The patch registration method of the present invention is a batch registration method for a patched program consisting of a plurality of partial programs.
A symbol real address correspondence table is prepared in which a symbol that specifies the partial program and the corresponding real address of the partial program are stored in pairs, and the symbol of the partial program to be patched and the position to be patched in the partial program are determined. Enter virtual address information including specifying information and patch data, search for a symbol in the symbol-real-address correspondence table that matches a symbol in the virtual address, and find the real address corresponding to the symbol and the input patch data. The real address to be patched is calculated by address conversion from the address information in the virtual address information, and the real address to be patched is calculated based on the real address to be patched and the input patch data. Configure by patching.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示す構成図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

第1図のバッチ登録方式はプログラム本体6およびシン
ボル実アドレス対応表2とを含む披パ・ソチプログラム
1とシンボルとオフセットとパッチデータとを含むパッ
チ3とアドレス変換手段4とパッチ投入手段5とから構
成される。
The batch registration method shown in FIG. 1 consists of a program 1 including a program body 6 and a symbol real address correspondence table 2, a patch 3 including symbols, offsets, and patch data, an address conversion means 4, and a patch input means 5. It consists of

プログラム本体6は複数の部分プログラムから構成され
ている。構成部分プログラムをそれぞれA、B、C,D
と名付ける。このプログラム名をシンボルと以降いう。
The program body 6 is composed of a plurality of partial programs. The component programs are A, B, C, and D respectively.
Name it. This program name is hereinafter referred to as a symbol.

したがってシンボル実アドレス対応表2にはそれぞれ部
分プログラムのシンボル21と各部分プログラムの開始
実アドレス22とが対になって格納されている。
Therefore, the symbol 21 of each partial program and the start real address 22 of each partial program are stored in pairs in the symbol real address correspondence table 2.

パッチ3にはどの部分プログラムのどの行をパッチする
かのデータが含まれている。すなわちパッチされる部分
プログラム名のシンボル31と、パッチされる行が部分
プログラムの開始行から何番目に当るかを示すオフセッ
ト32と、パッチすべきデータであるパッチデータ33
が含まれている。次に、第1図の動作を示すフローチャ
ートである第2図を参照して本実施例の動作を説明する
Patch 3 includes data on which line of which partial program is to be patched. That is, a symbol 31 for the name of the partial program to be patched, an offset 32 indicating the number of lines to be patched from the start line of the partial program, and patch data 33 that is the data to be patched.
It is included. Next, the operation of this embodiment will be explained with reference to FIG. 2, which is a flowchart showing the operation of FIG. 1.

パッチ3を入力しくステップ201>、アドレス変換手
段4によりシンボル実アドレス対応表2のシンボル21
を順に読みだし入力されたパッチ3のシンボル31とを
比較し一致するものを検索する(ステップ202)。次
に一致したシンボルの実アドレスをシンボル実アドレス
対応表2から読みだし入力されたオフセットとからアド
レス変換により(本実施例の場合はシンボルの実アドレ
スとオフセットとの加算を行なう)プログラム本体6に
おけるパッチアドレスを得る(ステ・・Iプ203)。
In step 201, patch 3 is input, symbol 21 of symbol real address correspondence table 2 is converted by address conversion means 4.
are read in order and compared with the symbol 31 of the input patch 3 to search for a match (step 202). Next, the real address of the matching symbol is read from the symbol real address correspondence table 2, and the address is converted from the input offset (in the case of this embodiment, the real address of the symbol and the offset are added). Obtain the patch address (step 203).

このようにして得られたバッチアドレスと入力されたパ
ッチデータとによりパッチ投入手段5はプログラム本体
6のバッチアドレスにあるデータを入力されたパッチデ
ータにパッチする(ステップ204)。
Based on the batch address thus obtained and the input patch data, the patch input means 5 patches the data at the batch address of the program main body 6 to the input patch data (step 204).

部分プログラム内での行の追加等による修正は部分プロ
グラム内の最終行に追加して行なうようにすればシンボ
ル実アドレス対応表2の変更のみでずみ、パッチ3のオ
フセラ1〜変更にはならずパッチは被パッチプログラム
の修正には影響しない。
If corrections such as adding lines in a partial program are made by adding them to the last line in the partial program, only the symbol real address correspondence table 2 will be changed, and it will not be changed from Offsera 1 in Patch 3. Patches do not affect modifications to patched programs.

本実施例ではシンボルとオフセットとでパッチ個所を特
定したが本発明はこれに限定されるものでなくシンボル
を介して特定するものであればよい。
In this embodiment, a patch location is identified using a symbol and an offset, but the present invention is not limited to this, and any patch location may be identified using a symbol.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、従来パッチに含んでいた
被パッチプログラムのアドレスをシンボリック表現とオ
フセットに変更し被パッチプログラム内にシンボリック
表現と実アドレス対応表を含むことにより、プログラム
の一部が修正によって変更されても、この対応表とパッ
チの持つシンボリック表現から実アドレスを得られるこ
とによって、従来、プログラムの変更がある都度作成し
なおしていたパッチも必要なくなり、またパッチの修正
ミスなども少なくなるという効果がある。
As explained above, the present invention changes the address of the patched program, which was conventionally included in the patch, into a symbolic expression and an offset, and includes the symbolic expression and real address correspondence table in the patched program. Even if a change occurs due to a modification, the real address can be obtained from this correspondence table and the symbolic representation of the patch, which eliminates the need for patches that were previously created every time a program was changed, and also eliminates the possibility of errors in patch modification. It has the effect of reducing

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例を示す構成図、第2図は第1
図の動作を示すフローチャートである。 1・・・被パ・ソチプログラム、2・・・シンボル実ア
ドレス対応表、3・・・パッチ、4・・・アドレス変更
手段、5・・・パッチ投入手段、6・・・プログラム本
体、21゜31・・・シンボル、22・・・実アドレス
、32・・・オフセット、33・・・パッチデータ、2
01〜204・・・フローチャートのステップ。
FIG. 1 is a configuration diagram showing one embodiment of the present invention, and FIG.
3 is a flowchart showing the operation of the figure. DESCRIPTION OF SYMBOLS 1... Target PC/Sochi program, 2... Symbol real address correspondence table, 3... Patch, 4... Address changing means, 5... Patch inputting means, 6... Program body, 21゜31...Symbol, 22...Real address, 32...Offset, 33...Patch data, 2
01-204...Steps of the flowchart.

Claims (1)

【特許請求の範囲】 複数の部分プログラムからなる被パッチプログラムへの
パッチ登録方式において、 前記部分プログラムを特定するシンボルと対応する前記
部分プログラムの実アドレスとを対にして格納するシン
ボル実アドレス対応表を用意し、パッチすべき部分プロ
グラムのシンボルと該部分プログラム内のパッチすべき
位置を指定するアドレス情報とを含む仮想アドレス情報
とパッチデータとを入力し、 前記仮想アドレス中のシンボルと一致する前記シンボル
実アドレス対応表中のシンボルを検索して該シンボルに
対応する実アドレスと前記入力された仮想アドレス情報
中のアドレス情報とからアドレス変換によりパッチすべ
き実アドレスを計算し、 前記パッチすべき実アドレスと前記入力されたパッチデ
ータとにより前記被パッチプログラムのパッチを行なう
ことを特徴とするパッチ登録方式。
[Claims] In a patch registration method for a patched program consisting of a plurality of partial programs, a symbol real address correspondence table stores pairs of symbols specifying the partial programs and corresponding real addresses of the partial programs. , input virtual address information including the symbol of the partial program to be patched and address information specifying the position to be patched in the partial program, and patch data, and input the patch data that matches the symbol in the virtual address. Searching for a symbol in the symbol real address correspondence table, calculating the real address to be patched by address conversion from the real address corresponding to the symbol and the address information in the input virtual address information, and calculating the real address to be patched by address conversion. A patch registration method characterized in that the patched program is patched using an address and the input patch data.
JP61168623A 1986-07-16 1986-07-16 Patch registering system Pending JPS6324326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61168623A JPS6324326A (en) 1986-07-16 1986-07-16 Patch registering system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61168623A JPS6324326A (en) 1986-07-16 1986-07-16 Patch registering system

Publications (1)

Publication Number Publication Date
JPS6324326A true JPS6324326A (en) 1988-02-01

Family

ID=15871490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61168623A Pending JPS6324326A (en) 1986-07-16 1986-07-16 Patch registering system

Country Status (1)

Country Link
JP (1) JPS6324326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322251A (en) * 1999-04-23 2000-11-24 Internatl Business Mach Corp <Ibm> Application managing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322251A (en) * 1999-04-23 2000-11-24 Internatl Business Mach Corp <Ibm> Application managing method

Similar Documents

Publication Publication Date Title
CN113434482A (en) Data migration method and device, computer equipment and storage medium
CN102609241B (en) hot patch method and device
CN103810257A (en) Method and device for upgrading software database and equipment
JP2012059226A (en) Business form processor, business form processing method, business form processing program, recording medium having program recorded therein
JPS63163930A (en) Alignment correction system
CN109902269A (en) A document display method, apparatus, electronic device and readable storage medium
CN114201758B (en) A method and system for verifying filtered vulnerability data
JPS6324326A (en) Patch registering system
JPS6333190B2 (en)
JPS6227867A (en) Picture data correcting system
JPS63180159A (en) System setup method for microcomputer system
Rottmann MIKADO-a system for computer aided microprogram design
JPH0792754B2 (en) Assembling device
CN108256352A (en) A kind of method, apparatus and terminal of web protection feature database automatic packaging
CN120994216A (en) A method and apparatus for file packaging and embedded file mapping
US10530687B2 (en) Control system and path information generating method
CN118179037A (en) Game user interface manufacturing method and device, storage medium and terminal
JPS6133507A (en) Automatic address assigning/adding device of pc address
JP3021697B2 (en) Exception handling in programming languages
CN114217783A (en) Method and device for generating code and terminal equipment
JPH01316823A (en) Operating system correcting system
JPH0676011A (en) Leader line generating and updating system
JPH0566938A (en) Patch data generating system
JPH01205335A (en) Machine language patching system by screen image correction
JPH0561743A (en) Automatic updating system between masters