当前位置:网站首页>Rough analysis of map file
Rough analysis of map file
2022-07-06 12:01:00 【csdndulala】
https://blog.csdn.net/weixin_30632899/article/details/94867874
Map The document is MCU programmatic Map( Map ).
The code we wrote , After compiling and linking a series of actions , Will generate a elf File format , From this elf The file can generate a hex perhaps bin file , For burning MCU Inside to run , meanwhile ( Configurable ) Generate a program called Map The file of .
This elf The file actually contains all kinds of information about the program , Include function name 、 Variable name , Address 、 Size and other very rich information . And this map The file is from elf Propose to get , Very intuitively ( In text form ) Show which function variables are contained in each file in the program , And in which segments are these function variables allocated , What's the address , And the size of the space it occupies .
map The file contains the following :
- Archive member included to satisfy reference by file (symbol)
Library function information called : From which .a Which of them? .o - Allocating common symbols
Uninitialized global variables : size Source of variable - Discarded input sections
No function is called 、 Variable - Memory Configuration
according to .ld In file MEMORY To divide the memory area : name 、 Initial address 、 length - Linker script and memory map
What is needed for the link .o .a
according to .ld In file SECTION To divide the area :
.txt Code segment
.rodata Strings and local variables
.srodata Used in the library rodata
.rela.dyn
.rela.text. Function information to be relocated
.data Data segment ( Big )
.sdata Data segment ( Small )
.bss Initialize to 0 The variable of ( Big )
.sbss Initialize to 0 The variable of ( Small )
COMMON Uninitialized variables
.attributes
.debug_info
.debug_abbrev
.debug_loc
.debug_aranges
.debug_line
.debug_str
.debug_frame
边栏推荐
- imgcat使用心得
- Kaggle竞赛-Two Sigma Connect: Rental Listing Inquiries
- Detailed explanation of 5g working principle (explanation & illustration)
- Gallery之图片浏览、组件学习
- XML文件详解:XML是什么、XML配置文件、XML数据文件、XML文件解析教程
- 小天才电话手表 Z3工作原理
- 【ESP32学习-2】esp32地址映射
- ESP8266通过Arduino IDE连接Onenet云平台(MQTT)
- Dead loop in FreeRTOS task function
- 分布式事务的实现方案
猜你喜欢
![[template] KMP string matching](/img/f9/cd8b6f8e2b0335c2ec0a76fc500c9b.jpg)
[template] KMP string matching

机器学习--线性回归(sklearn)

JS object and event learning notes

程序员老鸟都会搞错的问题 C语言基础 指针和数组

Comparison of solutions of Qualcomm & MTK & Kirin mobile platform USB3.0

Cannot change version of project facet Dynamic Web Module to 2.3.

Word排版(小計)

物联网系统框架学习
![[yarn] yarn container log cleaning](/img/1d/b48059ae2e6133ea9d9c38d31c4a86.png)
[yarn] yarn container log cleaning
![Detailed explanation of Union [C language]](/img/d2/99f288b1705a3d072387cd2dde827c.jpg)
Detailed explanation of Union [C language]
随机推荐
Funny cartoon: Programmer's logic
Implementation scheme of distributed transaction
There are three iPhone se 2022 models in the Eurasian Economic Commission database
Variable star user module
Pytoch temperature prediction
RT-Thread API参考手册
[yarn] CDP cluster yarn configuration capacity scheduler batch allocation
MySQL主从复制的原理以及实现
Keyword inline (inline function) usage analysis [C language]
Mysql database interview questions
[mrctf2020] dolls
Distribute wxWidgets application
STM32型号与Contex m对应关系
数据分析之缺失值填充(重点讲解多重插值法Miceforest)
[CDH] modify the default port 7180 of cloudera manager in cdh/cdp environment
Unit test - unittest framework
Cannot change version of project facet Dynamic Web Module to 2.3.
Mall project -- day09 -- order module
MySQL数据库面试题
Basic knowledge of lithium battery