- 论坛徽章:
- 0
|
求助:为啥我在链接脚本中设置起始地址为0x30000000后,生成的elf文件起始地址任然为0?
链接脚本:
ENTRY(_start)
SECTIONS
{
. = 0x30000000;
.text : {*(.text)}
.data : {*(.data)}
.bss : {*(.bss)}
}
生成的elf文件信息:
$ objdump a.elf -h
a.elf: 文件格式 elf32-little
$ objdump a.elf -h
a.elf: 文件格式 elf32-little
节:
Idx Name Size VMA LMA File off Algn
0 text 00000004 00000000 00000000 00000034 2**2
CONTENTS, READONLY
1 .ARM.attributes 00000014 00000000 00000000 00000038 2**0
CONTENTS, READONLY
2 .debug_line 00000031 00000000 00000000 0000004c 2**0
CONTENTS, READONLY, DEBUGGING
3 .debug_info 0000004e 00000000 00000000 0000007d 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_abbrev 00000014 00000000 00000000 000000cb 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_aranges 00000020 00000000 00000000 000000e0 2**3
CONTENTS, READONLY, DEBUGGING
编译器:arm-none-eabi
|
|