NJU-ProjectN/abstract-machine ics2023 initialized
NJU-ProjectN/abstract-machine 3348db971fd860be5cb28e21c18f9d0e65d0c96a Merge pull request #8 from Jasonyanyusong/master
This commit is contained in:
parent
2824efad33
commit
8e4feb4010
129 changed files with 9017 additions and 0 deletions
33
abstract-machine/scripts/linker.ld
Normal file
33
abstract-machine/scripts/linker.ld
Normal file
|
@ -0,0 +1,33 @@
|
|||
ENTRY(_start)
|
||||
PHDRS { text PT_LOAD; data PT_LOAD; }
|
||||
|
||||
SECTIONS {
|
||||
/* _pmem_start and _entry_offset are defined in LDFLAGS */
|
||||
. = _pmem_start + _entry_offset;
|
||||
.text : {
|
||||
*(entry)
|
||||
*(.text*)
|
||||
} : text
|
||||
etext = .;
|
||||
_etext = .;
|
||||
.rodata : {
|
||||
*(.rodata*)
|
||||
}
|
||||
.data : {
|
||||
*(.data)
|
||||
} : data
|
||||
edata = .;
|
||||
_data = .;
|
||||
.bss : {
|
||||
_bss_start = .;
|
||||
*(.bss*)
|
||||
*(.sbss*)
|
||||
*(.scommon)
|
||||
}
|
||||
_stack_top = ALIGN(0x1000);
|
||||
. = _stack_top + 0x8000;
|
||||
_stack_pointer = .;
|
||||
end = .;
|
||||
_end = .;
|
||||
_heap_start = ALIGN(0x1000);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue