Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
mo动态模块_Module
动态模块没有data段
发布于 2022-03-21 15:25:50 浏览:525
订阅该版
Hi,同学们 使用rt-thread master分支进行动态模块功能尝试的时候,发现编译出来的.mo文件不存在.data段,那么全局变量存放的位置在哪儿呢?
查看更多
1
个回答
默认排序
按发布时间排序
ImNtJempty
2022-03-21
这家伙很懒,什么也没写!
``` ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: ARM Version: 0x1 Entry point address: 0x60d Start of program headers: 52 (bytes into file) Start of section headers: 8580 (bytes into file) Flags: 0x5000200, Version5 EABI, soft-float ABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 3 Size of section headers: 40 (bytes) Number of section headers: 23 Section header string table index: 20 Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .hash HASH 00000094 000094 0000bc 04 A 2 0 4 [ 2] .dynsym DYNSYM 00000150 000150 0001c0 10 A 3 3 4 [ 3] .dynstr STRTAB 00000310 000310 000126 00 A 0 0 1 [ 4] .rel.dyn REL 00000438 000438 000078 08 A 2 0 4 [ 5] .text PROGBITS 000004b0 0004b0 0002c0 00 AX 0 0 4 [ 6] .rodata PROGBITS 00000770 000770 000068 00 A 0 0 4 [ 7] .dynamic DYNAMIC 000007d8 0007d8 000070 08 WA 3 0 4 [ 8] .got PROGBITS 00000848 000848 000048 04 WA 0 0 4 [ 9] .bss NOBITS 00000890 000890 00002c 00 WA 0 0 4 [10] .comment PROGBITS 00000000 000890 00006e 01 MS 0 0 1 [11] .debug_aranges PROGBITS 00000000 0008fe 000030 00 0 0 1 [12] .debug_info PROGBITS 00000000 00092e 0007db 00 0 0 1 [13] .debug_abbrev PROGBITS 00000000 001109 00018b 00 0 0 1 [14] .debug_line PROGBITS 00000000 001294 0000ba 00 0 0 1 [15] .debug_frame PROGBITS 00000000 001350 000084 00 0 0 4 [16] .debug_str PROGBITS 00000000 0013d4 0005dd 01 MS 0 0 1 [17] .debug_loc PROGBITS 00000000 0019b1 0000da 00 0 0 1 [18] .debug_ranges PROGBITS 00000000 001a8b 000020 00 0 0 1 [19] .ARM.attributes ARM_ATTRIBUTES 00000000 001aab 000033 00 0 0 1 [20] .shstrtab STRTAB 00000000 0020a9 0000da 00 0 0 1 [21] .symtab SYMTAB 00000000 001ae0 000430 10 22 42 4 [22] .strtab STRTAB 00000000 001f10 000199 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings), I (info), L (link order), O (extra OS processing required), G (group), T (TLS), C (compressed), x (unknown), o (OS specific), E (exclude), y (purecode), p (processor specific) There are no section groups in this file. Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00000000 0x00000000 0x007d8 0x007d8 R E 0x4 LOAD 0x0007d8 0x000007d8 0x000007d8 0x000b8 0x000e4 RW 0x4 DYNAMIC 0x0007d8 0x000007d8 0x000007d8 0x00070 0x00070 RW 0x4 Section to Segment mapping: Segment Sections... 00 .hash .dynsym .dynstr .rel.dyn .text .rodata 01 .dynamic .got .bss 02 .dynamic Dynamic section at offset 0x7d8 contains 9 entries: Tag Type Name/Value 0x00000004 (HASH) 0x94 0x00000005 (STRTAB) 0x310 0x00000006 (SYMTAB) 0x150 0x0000000a (STRSZ) 294 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000011 (REL) 0x438 0x00000012 (RELSZ) 120 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x438 contains 15 entries: Offset Info Type Sym.Value Sym. Name 00000854 00000315 R_ARM_GLOB_DAT 00000000 rt_strncpy 00000858 00000415 R_ARM_GLOB_DAT 00000000 rt_device_set_rx_indic 0000085c 00000515 R_ARM_GLOB_DAT 00000000 rt_device_open 00000860 00000715 R_ARM_GLOB_DAT 00000000 rt_kprintf 00000864 00000815 R_ARM_GLOB_DAT 00000000 rt_device_read 00000868 00000915 R_ARM_GLOB_DAT 00000000 rt_device_find 0000086c 00000b15 R_ARM_GLOB_DAT 00000000 rt_thread_create 00000870 00000c15 R_ARM_GLOB_DAT 00000000 rt_malloc 00000874 00000d15 R_ARM_GLOB_DAT 00000000 rt_sem_release 00000878 00000f15 R_ARM_GLOB_DAT 000008b8 serial 0000087c 00001315 R_ARM_GLOB_DAT 00000000 rt_thread_startup 00000880 00001415 R_ARM_GLOB_DAT 00000000 rt_sem_init 00000884 00001515 R_ARM_GLOB_DAT 00000000 rt_memset 00000888 00001815 R_ARM_GLOB_DAT 00000000 rt_sem_take 0000088c 00001b15 R_ARM_GLOB_DAT 00000000 rt_device_write There are no unwind sections in this file. Symbol table '.dynsym' contains 28 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 000004b0 0 SECTION LOCAL DEFAULT 5 2: 00000890 0 SECTION LOCAL DEFAULT 9 3: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_strncpy 4: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_set_rx_indicate 5: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_open 6: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 _bss_end__ 7: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_kprintf 8: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_read 9: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_find 10: 00000890 0 NOTYPE GLOBAL DEFAULT 9 __bss_start__ 11: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_thread_create 12: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_malloc 13: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_release 14: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 __bss_end__ 15: 000008b8 4 OBJECT GLOBAL DEFAULT 9 serial 16: 00000890 0 NOTYPE GLOBAL DEFAULT 9 __bss_start 17: 0000060d 356 FUNC GLOBAL DEFAULT 5 main 18: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 __end__ 19: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_thread_startup 20: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_init 21: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_memset 22: 00000890 0 NOTYPE GLOBAL DEFAULT 8 _edata 23: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 _end 24: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_take 25: 00080000 0 NOTYPE GLOBAL DEFAULT 19 _stack 26: 00000890 0 NOTYPE GLOBAL DEFAULT 8 __data_start 27: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_write Symbol table '.symtab' contains 67 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000094 0 SECTION LOCAL DEFAULT 1 2: 00000150 0 SECTION LOCAL DEFAULT 2 3: 00000310 0 SECTION LOCAL DEFAULT 3 4: 00000438 0 SECTION LOCAL DEFAULT 4 5: 000004b0 0 SECTION LOCAL DEFAULT 5 6: 00000770 0 SECTION LOCAL DEFAULT 6 7: 000007d8 0 SECTION LOCAL DEFAULT 7 8: 00000848 0 SECTION LOCAL DEFAULT 8 9: 00000890 0 SECTION LOCAL DEFAULT 9 10: 00000000 0 SECTION LOCAL DEFAULT 10 11: 00000000 0 SECTION LOCAL DEFAULT 11 12: 00000000 0 SECTION LOCAL DEFAULT 12 13: 00000000 0 SECTION LOCAL DEFAULT 13 14: 00000000 0 SECTION LOCAL DEFAULT 14 15: 00000000 0 SECTION LOCAL DEFAULT 15 16: 00000000 0 SECTION LOCAL DEFAULT 16 17: 00000000 0 SECTION LOCAL DEFAULT 17 18: 00000000 0 SECTION LOCAL DEFAULT 18 19: 00000000 0 SECTION LOCAL DEFAULT 19 20: 00000000 0 FILE LOCAL DEFAULT ABS main.c 21: 00000890 0 NOTYPE LOCAL DEFAULT 9 $d 22: 00000890 32 OBJECT LOCAL DEFAULT 9 rx_sem 23: 000004b0 0 NOTYPE LOCAL DEFAULT 5 $t 24: 000004b1 48 FUNC LOCAL DEFAULT 5 uart_input 25: 000004d4 0 NOTYPE LOCAL DEFAULT 5 $d 26: 00000770 0 NOTYPE LOCAL DEFAULT 6 $d 27: 000004e0 0 NOTYPE LOCAL DEFAULT 5 $t 28: 000004e1 300 FUNC LOCAL DEFAULT 5 serial_thread_entry 29: 000005b4 0 NOTYPE LOCAL DEFAULT 5 $d 30: 000007c4 20 OBJECT LOCAL DEFAULT 6 __func__.5852 31: 000008b0 4 OBJECT LOCAL DEFAULT 9 want.5850 32: 000008b4 4 OBJECT LOCAL DEFAULT 9 ret.5849 33: 0000060c 0 NOTYPE LOCAL DEFAULT 5 $t 34: 00000724 0 NOTYPE LOCAL DEFAULT 5 $d 35: 000007c4 0 NOTYPE LOCAL DEFAULT 6 $d 36: 000008b0 0 NOTYPE LOCAL DEFAULT 9 $d 37: 000008b4 0 NOTYPE LOCAL DEFAULT 9 $d 38: 00000010 0 NOTYPE LOCAL DEFAULT 15 $d 39: 00000000 0 FILE LOCAL DEFAULT ABS 40: 000007d8 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 41: 00000848 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 42: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_strncpy 43: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_set_rx_indicate 44: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_open 45: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 _bss_end__ 46: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_kprintf 47: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_read 48: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_find 49: 00000890 0 NOTYPE GLOBAL DEFAULT 9 __bss_start__ 50: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_thread_create 51: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_malloc 52: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_release 53: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 __bss_end__ 54: 000008b8 4 OBJECT GLOBAL DEFAULT 9 serial 55: 00000890 0 NOTYPE GLOBAL DEFAULT 9 __bss_start 56: 0000060d 356 FUNC GLOBAL DEFAULT 5 main 57: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 __end__ 58: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_thread_startup 59: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_init 60: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_memset 61: 00000890 0 NOTYPE GLOBAL DEFAULT 8 _edata 62: 000008bc 0 NOTYPE GLOBAL DEFAULT 9 _end 63: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_sem_take 64: 00080000 0 NOTYPE GLOBAL DEFAULT 19 _stack 65: 00000890 0 NOTYPE GLOBAL DEFAULT 8 __data_start 66: 00000000 0 NOTYPE GLOBAL DEFAULT UND rt_device_write Histogram for bucket list length (total of 17 buckets): Length Number % of total Coverage 0 4 ( 23.5%) 1 8 ( 47.1%) 32.0% 2 1 ( 5.9%) 40.0% 3 2 ( 11.8%) 64.0% 4 1 ( 5.9%) 80.0% 5 1 ( 5.9%) 100.0% No version information found in this file. Attribute Section: aeabi File Attributes Tag_CPU_name: "Cortex-M3" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Microcontroller Tag_THUMB_ISA_use: Thumb-2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_align_preserved: 8-byte, except leaf SP Tag_ABI_enum_size: small Tag_ABI_optimization_goals: Aggressive Debug Tag_CPU_unaligned_access: v6 ```
撰写答案
登录
注册新账号
关注者
0
被浏览
525
关于作者
ImNtJempty
这家伙很懒,什么也没写!
提问
4
回答
4
被采纳
0
关注TA
发私信
相关问题
1
貌似stm32f10x的应用模块在1.2.x版本不能正常编译
2
应用模块打开之后unload之后还在内存中
3
关于module.c的_load_shared_object的疑问
4
应用模块的rt_module_unload函数的bug
5
rtt 如何实现动态加载app
6
使用zmodem传输文件,应用模块文件传输完成,访问失败
7
RTT下应用模块编译具体方法
8
RTT应用模块编译出错
9
RTT应用模块编译问题
10
求问动态模块是什么意思呢
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
如何在master上的BSP中添加配置yml文件
2
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
3
RT-Thread 发布 EtherKit开源以太网硬件!
4
rt-thread使用cherryusb实现虚拟串口
5
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部