文件生成过程
NM= nm bash . / scripts/ mksysmap vmlinux System. map
文件格式
arm- linux system. map内容格式为
链接地址 类型 符号
地址为什么是 链接地址 ?
类型 有哪些?
https: / / blog. csdn. net/ u011011827/ article/ details/ 69938645
文件用途
内核发生 oops , 会打印出 pc 的 内容 , 内容 为 地址.
klogd会街区内核的 oops 信息, 并
1. 调用 syslogd 将其记录下来
2. 利用 System. map 文件 进行 符号- 地址 解析, 转换 地址到 符号
一些驱动程序将使用System. map来解析符号
其他程序
klogd
lsof
ps
dosemu
文件位置
生成在 顶层目录 下
应该放置在
/ boot/ System. map
文件内容
System. map 可以分为8 个部分
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
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 _sdata
. . .
c088e548 D _edata
. . .
c088e548 B __bss_start
. . .
c08c413c B __bss_stop
c08c413c B _end
fffe0000 T __eitcm_text
. . .
ffff1240 T vector_fiq