-f file_name | Loads the symbol table file file_name. |
-elffile | Specifiies that file_name is an elfile. |
-elfsym |
Specifiies that file_name was generated by nm -xvs file,
so that each line has the format:
[Index] | Value | Size | Type | Bind | Other | Shname | Name |
-vsym | special symbol file for diags, where each line has format
sym_name va ra pa |
-ctx | context in which symbols will be interpreted.
If context-id is numeric and greater than 0, then the context is
non-previleged (i.e. user) context.
A context-id equal to 0 or k implies nucleus
context and context-id equal to hv is
hyperprivileged context.
If -ctx is not specified, then this set of symbols may match
any context.
|
-x | starting physical address of the text segment |
-d | starting address of the data segment |
For a relocatable ELF file, the -x and -d flags are required to specify the starting text and data addresses. For an absolute ELF file, the text and data addresses are taken from the file's section header.
Examples:
load_symbols -elffile -f q -x 0x0100000 -d 0x0100000 -ctx hvwhere ks/krtld is a relocatable ELF file and ks/unix is an absolute ELF file. Whether or not an ELF file is relocatable can be obtained by running the file utility. For example,
$ file ks/krtldIn this case, ks/krtld is relocatable and ks/unix is absolute.