File generation process
NM=nm bash ./scripts/mksysmap vmlinux System.map
file format
The content format of arm-linux system.map is
Link address type symbol
Why is the address a link address?
What are the types?
https://blog.csdn.net/u011011827/article/details/69938645
File usage
When an oops occurs in the kernel, the contents of pc are printed out, which are addresses.
klogd will block kernel oops information and
1. Call syslogd to record it
2. Use System.map file to perform symbol-address resolution and convert addresses to symbols
Some drivers will use System.map to resolve symbols
Other Programs
klogd
lsof
ps
dosemu
File Location
Generated in the top-level directory
Should be placed
/boot/System.map
document content
System.map can be divided into 8 parts
miscellaneous
00000018
...
c0004000 A swapper_pg_dir
...
c0008000 T _text
...
c0008000 T stext
...
c000807c t __create_page_tables
c0008150 t __enable_mmu
c00081d4
contains .text.* sections, may also contain .rodata.* and/or .init.* sections
c0100000 T _stext
...
c0600000 R _etext
contains .rodata.* sections
c0600000 R __start_rodata
...
c06b6000 R __end_rodata
miscellaneous
c06b6648 R __start_unwind_idx
...
c06d43d8 R __stop_unwind_tab
contains .init.* sections, but .init.text.* may be out of this range on some architectures.
c0700000 T __init_begin
...
c0800000 D __init_end
contains .data.* sections, may also contain .rodata.* and/or .init.* sections.
c0800000 D _sdate
...
c088e548 D_edata
...
contains BSS sections
c088e548 B __bss_start
...
c08c413c B __bss_stop
c08c413c B _end
miscellaneous
fffe0000 T __eitcm_text
...
ffff1240 T vector_fiq
Previous article:OK6410A Development Board (VIII) 8 linux-5.11 OK6410A Detailed analysis of the start_kernel runtime stack
Next article:OK6410A development board (eight) 7 linux-5.11 OK6410A usb camera transplant
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Modelsim10.4 installation and adding crack files error solution
- TI - MCU - MSP430 User Guide 1 -> MSP430 Introduction and Selection Guide
- PCB production
- Sharing 10 common formulas for switching power supply design
- Battery Management System BMS Technical Data Transfer
- [Raspberry Pi Pico Review] LCD1602 4-bit mode display driver
- There are 10 digital tubes on a digital tube display board, which uses 1 74HC00D, 2 74HC04D and 10 74HC164D
- 135 classic design examples of Verilog
- [Perf-V Evaluation] On-chip Temperature Collection
- What is the difference between WiFi 6 routers and WiFi 5 routers