The Tornado shell provides an interpretive environment that offers easy access to the loader. From the shell, access the loader through the ld( ) command:
-> ld symbolsVisibility, commonSymbolsPolicy, "objectFile"
For a complete discussion of loader behavior, see 3.5 Loader Architecture.
To call the loader from the shell, enter:
-> ld 0, 0, "/home/users/me/myFile.o"
You can also use input redirection:
-> ld </home/users/me/myFile.o
Another way to access the loader facilities of the target server is through the WTX Tcl binding to the WTX protocol. This environment offers the scripting advantages of Tcl and the ability to manipulate the WTX protocol directly. From the wtxtcl tool (see 4.4.2 Starting a wtxtcl Session), access the loader through the wtxObjModuleLoad routine:
wtxtcl> wtxObjModuleLoad [option] object- file
The option argument is an optional parameter from the following list:
|
|||||||||||||||||||
|
|||||||||||||||||||
You can combine several options by linking them with the "|" character. For a detailed discussion of these parameters, see 3.5.4 Loader Options.
wtxtcl> wtxObjModuleLoad /home/users/me/myFile.o wtxtcl> wtxObjModuleLoad LOAD_ALL_SYMBOLS /home/users/me/myFile.o wtxtcl> wtxObjModuleLoad LOAD_GLOBAL_SYMBOLS|LOAD_COMMON_MATCH_USER \ /home/users/me/myFile.o
You can also call the loader from C programs on the host, using the WTX C language binding. For details about using wtxObjModuleLoad( ), see the online reference material under Tornado API Reference>WTX C Library. For general information on using C, see 4.5 WTX C API.