Debugging a Program With dbx

rtc_patch_area

rtc_patch_area is a shell script that creates object files or shared library files that can be linked into the user's program to add patch area space to programs with large text, data, or bss images.

The object file (or shared library) created contains one RTC patch area of the specified size or 8000000 if size is not supplied.

The name of the resulting object file (or shared library) is written to the standard output. Either the -o or -so option must be used.

Specify the name of the shared library to be created. This name is then written to the standard output:


-so sharedlibname

Specify the name of the object file to be created. This name is then written to the standard output:


-o objectname

Create a patch area of size bytes (default and reasonable maximum is 8000000):


-size size

Use compiler instead of cc to build the object file:


-cc compiler

Examples

Generate a standard eight megabyte patch area object file:


rtc_patch_area -o patch.o

Generate an object file containing a 100,000 byte patch:


rtc_patch_area -size 100000 -o patch.o

Generate a one megabyte patch area shared library:


rtc_patch_area -so rtc1M.so -size 1000000