System.map

System.map

In Linux, the System.map file is a symbol table used by the kernel.

A symbol table is a look-up between symbol names and their addresses in memory. A symbol name may be the name of a variable or the name of a function. The System.map is required when the address of a symbol name, or the symbol name of an address, is needed. It is especially useful for debugging kernel panics and kernel oopses. The kernel does the address-to-name translation itself when CONFIG_KALLSYMS is enabled so that tools like ksymoops are not required.

The following is part of a System.map file:

c041bc90 b packet_sklist
c041bc94 b packet_sklist_lock
c041bc94 b packet_socks_nr
c041bc98 A __bss_stop
c041bc98 A _end
c041c000 A pg0
ffffe400 A __kernel_vsyscall
ffffe410 A SYSENTER_RETURN
ffffe420 A __kernel_sigreturn
ffffe440 A __kernel_rt_sigreturn

Because addresses may change from one build to the next, a new System.map is generated for each build of the kernel.

The character between the address and the symbol (separated by spaces) is the 'type' of the symbol. The nm (Unix) utility program on Unix systems list the symbols from object files. The System.map is directly related to it, in that this file is produced by nm on the whole kernel program -- just like nm lists the symbols and their types for any small object programs.

Some of these types are:

A for absolute.
B or b for uninitialized data section (called BSS).
D or d for initialized data section.
G or g for initialized data section for small objects (global).
i for sections specific to DLLs.
N for debugging symbol.
p for stack unwind section.
R or r for read only data section.
S or s for uninitialzed data section for small objects.
T or t for text (code) section.
U for undefined.
V or v for weak object.
W or w for weak objects which have not been tagged so.
- for stabs symbol in an a.out object file.
? for 'symbol type unknown.'

Location of System.map within the filesystem

After building the Linux kernel, System.map is located in the root of the source directory. However, some further software installation steps expect to locate the file elsewhere:

  • as /boot/System.map-$(uname -r)
  • Building SVGALib expects to find /lib/modules/$(uname -r)/build/System.map

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • System.map — System.map  файл, внутри которого находится символьная таблица адресов функций и процедур, используемых ядром операционной системы Linux. В этой таблице перечислены имена переменных и функций и их адреса в памяти компьютера. Эта таблица… …   Википедия

  • Map database management — stems from navigation units becoming more common in automotive vehicles (see Automotive navigation system). They serve to perform usual navigation functions, such as finding a route to a desired destination and guiding the driver to it or… …   Wikipedia

  • Map — /map/, n. Walter, c1140 1209?, Welsh ecclesiastic, poet, and satirist. Also, Mapes /mayps, may peez/. * * * I Graphic representation, drawn to scale and usually on a flat surface, of features usually geographic, geologic, or geopolitical of an… …   Universalium

  • Map coloring — is the act of assigning different colors to different features on a map. There are two very different uses of this term. The first is in cartography, choosing the colors to be used when producing a map. The second is in mathematics, where the… …   Wikipedia

  • map — Ⅰ. map UK US /mæp/ noun [C] GRAPHS & CHARTS ► a drawing of the Earth s surface, or part of it, showing things such as the shape and position of countries, political borders, towns, rivers, etc.: on a map »Many of these students could not even… …   Financial and business terms

  • System Shock 2 — Developer(s) Irrational Games Looking Glass Studios Publisher(s) Electronic Arts …   Wikipedia

  • Map My Ancestors — Mapping a family tree Developer(s) Integrated Earth Stable release 1.8.7[1] …   Wikipedia

  • Map of the Earth — can refer to the world, planet Earth, or a multi page map atlas: A simple political map of the World as of 2010 (click to enlarge) …   Wikipedia

  • System of Cooperation Among the American Air Forces — SICOFAA emblem Active 1961 Current Country Argentina, Belize …   Wikipedia

  • Map algebra — is a simple and an elegant set based algebra for manipulating geographic data, proposed by Dr. Dana Tomlin in the early 1980s. It is a set of primitive operations in a Geographic Information System (GIS) which allows two or more raster layers (… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”