system.map aufbau

Post Reply
Message
Author
laubfrosch
Posts: 3
Joined: 20. Jun 2002 11:33

system.map aufbau

#1 Post by laubfrosch »

Hi,

könnt ihr mir kurz sagen, wie der aufbau der system.map ist?
ich meine, welche spalte was anzeigt. ich habe 3 spalten in der system.map
danke

cu

Descartes

Re: system.map aufbau

#2 Post by Descartes »

""
""System.map is produced by "nm vmlinux", irrelevant or uninteresting symbols are grepped out.
""
Quelle: Linux Kernel 2.4 Internals
Punkt 3 in Abschnitt 1.1 "Building the Linux Kernel Image"
<a href="http://www.moses.uklinux.net/patches/lki-1.html" target="_blank"><!--auto-->http://www.moses.uklinux.net/patches/lk ... <!--auto-->


also schauen wir uns mal die Manpage nm(1) an:

<blockquote><pre><font size="1" face="">code:</font><hr><font face="Courier New" size="2">
NM(1) GNU Development Tools NM(1)

NAME
nm - list symbols from object files

SYNOPSIS
nm [-a|--debug-syms] [-g|--extern-only]
[-B] [-C|--demangle[=style]] [-D|--dynamic]
[-s|--print-armap] [-A|-o|--print-file-name]
[-n|-v|--numeric-sort] [-p|--no-sort]
[-r|--reverse-sort] [--size-sort] [-u|--undefined-only]
[-t radix|--radix=radix] [-P|--portability]
[--target=bfdname] [-fformat|--format=format]
[--defined-only] [-l|--line-numbers] [--no-demangle]
[-V|--version] [-X 32_64] [--help] [objfile...]

DESCRIPTION
GNU nm lists the symbols from object files objfile.... If no object files are
listed as arguments, nm assumes the file a.out.

For each symbol, nm shows:

o The symbol value, in the radix selected by options (see below), or hexadec-
imal by default.

o The symbol type. At least the following types are used; others are, as
well, depending on the object file format. If lowercase, the symbol is
local; if uppercase, the symbol is global (external).

""A""
The symbol's value is absolute, and will not be changed by further
linking.

""B""
The symbol is in the uninitialized data section (known as BSS).

""C""
The symbol is common. Common symbols are uninitialized data. When
linking, multiple common symbols may appear with the same name. If the
symbol is defined anywhere, the common symbols are treated as undefined
references.

""D""
The symbol is in the initialized data section.

""G""
The symbol is in an initialized data section for small objects. Some
object file formats permit more efficient access to small data objects,
such as a global int variable as opposed to a large global array.

""I""
The symbol is an indirect reference to another symbol. This is a GNU
extension to the a.out object file format which is rarely used.

""N""
The symbol is a debugging symbol.

""R""
The symbol is in a read only data section.

""S""
The symbol is in an uninitialized data section for small objects.

""T""
The symbol is in the text (code) section.

""U""
The symbol is undefined.

""V""
The symbol is a weak object. When a weak defined symbol is linked with
a normal defined symbol, the normal defined symbol is used with no
error. When a weak undefined symbol is linked and the symbol is not
defined, the value of the weak symbol becomes zero with no error.

""W""
The symbol is a weak symbol that has not been specifically tagged as a
weak object symbol. When a weak defined symbol is linked with a normal
defined symbol, the normal defined symbol is used with no error. When
a weak undefined symbol is linked and the symbol is not defined, the
value of the weak symbol becomes zero with no error.

""-""
The symbol is a stabs symbol in an a.out object file. In this case,
the next values printed are the stabs other field, the stabs desc
field, and the stab type. Stabs symbols are used to hold debugging
information.

""?""
The symbol type is unknown, or object file format specific.

o The symbol name.

...
</font><hr></pre></blockquote>

Post Reply