System.map

System.map

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

Символьная таблица адресов для загруженного ядра также находится в файле /proc/kallsyms.

Содержание

Создание файла

Файл System.map можно создать командой nm -n vmlinux > System.map. При компиляции ядра используется следующая команда (скрипт /usr/src/linux/scripts/mksysmap, версия ядра 2.6.35): $NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)' > $2, где $1 — файл vmlinux, $2 — файл System.map.

Содержимое файла

Пример содержимого файла System.map:

c040f4ec b local_apic_timer_verify_ok
c040f4f0 b calibration_result
c040f4f4 b enabled_via_apicbase
c040f4f8 b apic_phys
c040f500 b apic_pm_state
c040f538 B nmi_active
c040f53c B nmi_watchdog_enabled
c040f540 B unknown_nmi_panic
c040f544 b backtrace_mask
c040f548 b lock.19318
c040f54c b nmi_pm_active
c040f550 b last_irq_sums
c040f560 b alert_counter

Вторая колонка обозначает тип символа (заглавные буквы означают глобальный или экспортируемый символ, строчные — локальный):

  • A — абсолютное значение.
  • B — символ в секции неинициализированных данных.
  • D — символ в секции инициализированных данных.
  • N — отладочный символ.
  • R — символ в секции инициализированных данных ReadOnly.
  • T — символ в секции кода.

System.map создается при каждой сборке ядра ввиду того, что в разных версиях могут быть разные адреса процедур[1].

Расположение

После сборки Linux System.map находится в директории /usr/src/linux/. Однако некоторые программы требуют его в других местах и иногда с другим именем, например, /boot/System.map-$(uname -r). Для сборки SVGAlib необходимо наличие файла /lib/modules/$(uname -r)/build/System.map[значимость факта?].

См. также

Примечания

Ссылки

  • Alavoor Vasudevan The Linux Kernel HOWTO, System.map  (англ.) (4 мая 2003). — Описание файла System.map. Проверено 20 сентября 2011.
  • System.map file  (англ.). — Информация о символах, символьных таблицах и файле System.map. Архивировано из первоисточника 19 мая 2012. Проверено 20 сентября 2011.



Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Полезное


Смотреть что такое "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… …   Wikipedia

  • 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


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»