<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
<title>SPARC Architectural Model: User Commands
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
<div STYLE=
"margin-bottom: 0cm"></div>
load_symbols - load a symbol table
load_symbols -f
<i>file_name
</i> -elffile|-elfsym|-vsym [-x
<i>text_start_addr
</i>] [-d
<i>data_start_addr
</i>] [-ctx
<i>context-id
</i>]
Loads a symbol table
<i>file_name
</i>.
The following options define how
<i>file_name
</i> is loaded.
Loads the symbol table file
<i>file_name
</i>.
Specifiies that
<i>file_name
</i> is an elfile.
Specifiies that
<i>file_name
</i> was generated by nm -xvs
<i>file
</i>,
so that each line has the format:
[
<i>Index
</i>] |
<i>Value
</i> |
<i>Size
</i> |
<i>Type
</i> |
<i>Bind
</i> |
<i>Other
</i> |
<i>Shname
</i> |
<i>Name
</i>
<td>special symbol file for diags, where each line has format
<i>sym_name
</i> <i>va
</i> <i>ra
</i> <i>pa
</i>
<td> context in which symbols will be interpreted.
If
<i>context-id
</i> is numeric and greater than
0, then the context is
non-previleged (i.e. user) context.
A
<i>context-id
</i> equal to
0 or
<code>k
</code> implies nucleus
context and
<i>context-id
</i> equal to
<code>hv
</code> is
If -ctx is not specified, then this set of symbols may match
starting physical address of the text segment
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.
load_symbols -elffile -f q -x
0x0100000 -d
0x0100000 -ctx hv
<br>load_symbols -elffile -f ks/unix -ctx k
<br>load_symbols -elffile -f ks/krtld -x
0x1081a58 -d
0x1855328 -ctx k
<br>load_symbols -elffile -f ks/genunix -x
0x109a6a0 -d
0x185abc0 -ctx k
<br>load_symbols -elffile -f ks/platmod -x
0x11f88c8 -d
0x18ad1b0 -ctx k
where 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,
ks/krtld: ELF
64-bit MSB relocatable SPARCV9 Version
1
ks/unix: ELF
64-bit MSB executable SPARCV9 Version
1, UltraSPARC3 Extensions Required, dynamically linked, not stripped
In this case, ks/krtld is relocatable and ks/unix is absolute.
<ul><a href=
"cmd_unload_symbols.html">unload_symbols
</a></ul>
<ul><a href=
"cmd_sym.html">sym
</a></ul>