System.map
In Linux, the file is a symbol table used by the kernel.
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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.[1]
Internals
edit edit sourceThe following is part of a System.map file:[2]
Because addresses may change from one build to the next, a new System.map is generated for each build of the kernel.[3]
Symbol types
edit edit sourceThe character between the address and the symbol (separated by spaces) is the type of a symbol. The nm utility program on Unix systems lists 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.[4]
Some of these types are:[4]
Afor absoluteBorbfor uninitialized data section (called BSS)Dordfor initialized data sectionGorgfor initialized data section for small objects (global)ifor sections specific to DLLsNfor debugging symbolpfor stack unwind sectionRorrfor read only data sectionSorsfor uninitialized data section for small objectsTortfor text (code) sectionUfor undefinedVorvfor weak objectWorwfor weak objects which have not been tagged so-for stabs symbol in an a.out object file?for "symbol type unknown"
Filesystem location
edit edit sourceAfter 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:[5]
- as
/boot/System.map-$(uname -r) - building SVGAlib expects to find
/lib/modules/$(uname -r)/build/System.map
See also
edit edit sourceReferences
edit edit source- ^ "FAQ/System.map - Linux Kernel Newbies". kernelnewbies.org. 2006-04-14. Retrieved 2014-04-06.
- ^ Peter Jay Salzman (2003-05-28). "The system.map File". Rlworkman.net. Retrieved 2014-04-06.
- ^ "Kernel-HOWTO". faqs.org. Retrieved 2014-04-06.
- ^ a b "nm(1): symbols from object files - Linux man page". Linux.die.net. Retrieved 2014-04-06.
- ^ "Peter's Notes: System.map". Linuxmafia.com. 2003-05-29. Retrieved 2014-04-06.
certifications
- Kernel modules
- BlueZ
- cgroups
- Console
- bcache
- Device mapper
- dm-cache
- dm-crypt
- DRM
- EDAC
- evdev
- Kernel same-page merging (KSM)
- LIO
- Framebuffer
- LVM
- KMS driver
- Netfilter
- Netlink
- nftables
- Network scheduler
- perf
- SLUB
- zram
- zswap
Text derived from https://en.wikipedia.org/w/index.php?oldid=1288099122 under CC BY-SA 4.0; modifications have been made.