This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
rustboyadvance-ng/arm7tdmi/examples/test_program/test.ld

32 lines
398 B
Plaintext
Raw Normal View History

ENTRY(_reset)
MEMORY {
RAM : ORIGIN = 0x00000000, LENGTH = 16K
}
SECTIONS {
. = ORIGIN(RAM);
.init : {
*(.init.vector);
*(.init*);
} > RAM
.text : ALIGN(4) {
*(.text)
*(.text.*)
} > RAM
.data : ALIGN(4) {
*(.rodata*);
*(.data*);
} > RAM
.bss : ALIGN(4) {
*(.bss*)
} > RAM
.stack : AT (0x00003000) {
_stack_bottom = .;
. += 0xfe0;
_stack_top = .;
} > RAM
}