# US 2006/0080635 A1 · Dynamic linking in constrained environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0080635 A1
- Document ID: US20060080635A1
- Status: Published application
- Kind: A1
- Application number: 10/964,232
- Filed: 2004-10-12
- Published: 2006-04-13
- Earliest claimed: 2004-10-12
- Assignees: Picsel Research Limited
- Inventors: Majid Anwar; Paul Gardiner
- Web page: https://patentgrep.com/patent/US20060080635A1

## CPC

- G06F 9/44521: {Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A platform independent binary object (PIBO) operable on disparate computing environments that have a selected hardware architecture without requiring rebuilding or reloading is provided. The PIBO can be parsed to generate source-code stub file. The PIBO can be loaded and linked with a cooperating computing application by an exemplary linker/loader employing the stub file. Also, the PIBO can be used in various contexts, including but not limited to, as a mechanism for dynamically linking shared objects on platforms that do not offer such native facility; in utilizing pre-written code components on platforms that otherwise would be incompatible due to a violation of platform constraints within particular code; as a mechanism for loading non object-oriented code that circumvents restrictions of multiple execution instances and repeat execution inherent in the code; and as mechanism that allows for the use of a binary object to add on functionality on a closed platform.

## Claims

### Claim 1

A system for dynamically linking a binary object file in a constrained computing environment that does not have a native dynamic linking mechanism comprising:
a dynamic library (DL); and
a source-code based stub file, operable in the constrained environment to allow a binary executable program executing in the constrained environment to dynamically link to and cooperate with the DL.

### Claim 2 (depends on 1)

The system as recited in claim 1 wherein the DL comprises any of a linked library and a platform independent code library.

### Claim 3 (depends on 2)

The system as recited in claim 2 wherein the DL comprises a object file having a selected structure.

### Claim 4 (depends on 3)

The system as recited in claim 3 wherein the DL selected structure comprises any of the executable and linking format (ELF) and the portable executable (PE).

### Claim 5 (depends on 3)

The system as recited in claim 3 further comprising a parser operating on the DL to generate the stub file.

### Claim 6 (depends on 5)

The system as recited in claim 5 further comprising a binary executable program having a computing application operable on the constrained environment.

### Claim 7 (depends on 6)

The system as recited in claim 6 wherein source code for the cooperating computing application and the source code for the stub file, and source code for a dynamic linker/loader are compiled and linked into a binary executable program for the constrained computing environment.

### Claim 8 (depends on 7)

The system as recited in claim 7 wherein the computing application, the source code for the stub file, and the source for the dynamic linker/loader are compiled and linked into a binary executable program for a selected platform operating on the constrained environment.

### Claim 9 (depends on 8)

The system as recited in claim 8 further comprising a dynamic linker/loader operating on the DL to load the DL onto the constrained environments during the execution of the program.

### Claim 10 (depends on 8)

The system as recited in claim 8 wherein the dynamic linker/loader operates on the DL to link the DL with the cooperating computing application during the execution of the program.

### Claim 11 (depends on 9, 10)

The system as recited in claim 9 or 10 wherein the dynamic linker/loader comprises a component of the executable program.

### Claim 12 (depends on 9, 10)

The system as recited in claim 9 or 10 further comprising an interface module providing the DL access to the computing application.

### Claim 13 (depends on 12)

The system as recited in claim 12 wherein the interface module comprises source code to allow the DL to call selected functions in the computing application.

### Claim 14 (depends on 13)

The system as recited in claim 13 wherein source code of the interface module is compiled with the computing application for the selected constrained computing environment.

### Claim 15 (depends on 9, 10)

The system as recited in claim 9 or 10 wherein the dynamic linker/loader handles symbol resolution and relocation to bind the computing application and the DL.

### Claim 16 (depends on 1)

The system as recited in claim 1 wherein a library source code is compiled to generate the DL, comprising any of binary code and data.

### Claim 17

A method to dynamically link a binary object in a constrained environment having no mechanism for dynamic linking of binary objects comprising:
providing a platform independent library (PIL); and
providing a stub file, being a source code file, allowing a binary executable program executable on the constrained environment to have access to and cooperate with the (PIL).

### Claim 18 (depends on 17)

The method as recited in claim 17 further comprising generating the PIL as an object file having a selected structure.

### Claim 19 (depends on 18)

The method as recited in claim 18 further comprising selecting the object file as a file comprising any of the executable and linking format (ELF) and portable executable (PE) file structures.

### Claim 20 (depends on 19)

The method as recited in claim 19 further comprising generating the PIL for the constrained environment operating on a selected hardware architecture.

### Claim 21 (depends on 20)

The method as recited in claim 20 further comprising selecting the hardware architecture from architectures comprising any of a reduced instruction set computer (RISC) and complex instruction set computer (CISC) hardware architectures.

### Claim 22 (depends on 18)

The method as recited in claim 18 further comprising parsing the PIL to generate the stub file.

### Claim 23 (depends on 22)

The method as recited in claim 22 further comprising providing a dynamic linker/loader, wherein the dynamic linker/loader is compiled with a cooperating computing application to create a binary executable program, executable on the constrained environment.

### Claim 24 (depends on 23)

The method as recited in claim 23 further comprising loading the PIL onto the constrained computing environment by the dynamic linker/loader during the loading of the binary executable program.

### Claim 25 (depends on 24)

The method as recited in claim 24 further comprising linking the PIL with the cooperating computing application during the loading of the binary executable program.

### Claim 26 (depends on 25)

The method as recited in claim 25 further comprising handling resolution and relocation of PIL symbols for use by the cooperating computing application by the dynamic linker/loader.

### Claim 27 (depends on 26)

The method as recited in claim 26 further comprising distributing the PIL to the constrained environment upon making modifications

### Claim 28 (depends on 27)

The method as recited in claim 27 further comprising modifying the cooperating computing application to accommodate a modification to the PIL.

### Claim 29

A computer readable medium having computer readable instructions to instruct a computer to perform a method comprising:
providing a platform independent library (PIL); and
providing a stub file, being a source code file, allowing a binary executable program executable on the constrained environment to have access to and cooperate with the (PIL).

### Claim 30

A computer readable medium having computer readable instructions to instruct a constrained environment that does not perform dynamic linking of binary objects to handle dynamic linking of binary objects comprising:
generating a platform independent dynamic library (PIDL) having a object file comprising any of executable and linking format (ELF) and portable executable (PE) file structure;
parsing the PIDL to generate a stub file generated as source code; and
linking the PIDL with a binary executable program having a cooperating computing application by a dynamic loader/linker for execution on the constrained environment.

### Claim 31 (depends on 30)

The computer readable medium as recited in claim 30 further comprising providing a application program interface providing the PIDL access to functions contained in the cooperating computing application.

### Claim 32 (depends on 31)

The computer readable medium as recited in claim 31 further comprising compiling source code for the stub file, source code for the dynamic loader/linker, and the cooperating computing application for the constrained environment.

### Claim 33 (depends on 32)

The computer readable medium as recited in claim 32 wherein the dynamic loader/linker operates to perform symbol resolution and look up for PIDL symbols during run-time of a cooperating computing application.

### Claim 34

A method to dynamically link a library in a computing environment not supporting dynamic linking, comprising:
providing a library source code;
compiling the library source code to generate a code library (CL) comprising an object file having a selected format;
parsing the CL to generate a source code based stub file that cooperates with the CL;
loading the CL in memory of the computing environment;
linking the CL to resolve and relocate CL symbols for use by a cooperating computing application executable on a computing environment.

### Claim 35 (depends on 34)

The method as recited in claim 34 further comprising generating the stub file as a source code file that is compiled and built with source code for a dynamic linker/loader, and source code for a cooperating computing application to create an executable program executable on the computing environment.

### Claim 36 (depends on 35)

The method as recited in claim 35 further comprising selecting a file format comprising any of the ELF and PE file formats.

### Claim 37 (depends on 36)

The method as recited in claim 36 further comprising providing a linker/loader operable exclusively on the computing environment.

### Claim 38

A method to distribute a computing library update for use in a constrained computing environment not capable of performing dynamic linking of binary object files:
creating a dynamic library (DL) operable with a source-code based stub file
wherein the stub file is compiled with a cooperating computing application as part of an executable program operable on the constrained environment; and
communicating the DL to the constrained environment over a communications network.

### Claim 39 (depends on 38)

The method as recited in claim 38 further comprising providing a loader/linker generated for operation with the constrained computing environment.

### Claim 40 (depends on 38)

The method as recited in claim 38 further comprising distributing the PIL to the constrained environment upon making modifications.

### Claim 41 (depends on 40)

The method as recited in claim 40 further comprising modifying the cooperating computing application to accommodate a modification to the PIL.
