LMA and VMA never change when i link the object
i wrote a super simple a.S and compile using the following commands:
arm-none-eabi-as a.S -o a.o
arm-none-eabi-ld -T a.lds a.o -o a.elf
I find that the address of a.elf is always 0x0 althouth i have assigned it to 0x30000000. And i have tried all measures i know to change its address but failed. Just want to know where the problem is or what i have missed. By the way, I've tried under gcc for x86 with the same measure and it worked normal.
[content of a.S]
.global _start
.section text
_start:
b _start
[content of a.lds:]
ENTRY(_start)
SECTIONS
{
. = 0x30000000;
.text : AT(0x30000000)
{
}
.data : ALIGN(0x1000)
.bss : {*(.bss)}
}
[output of arm-none-
a.elf: file format elf32-littlearm
Disassembly of section text:
00000000 <_start>:
0: eafffffe b 0 <_start>
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: