initial commit
This commit is contained in:
commit
1e778fc163
12 changed files with 431 additions and 0 deletions
19
link.ld
Normal file
19
link.ld
Normal file
|
@ -0,0 +1,19 @@
|
|||
SECTIONS
|
||||
{
|
||||
. = 0x80000;
|
||||
.text : { KEEP(*(.text.boot)) *(.text .text.* .gnu.linkonce.t*) }
|
||||
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r*) }
|
||||
PROVIDE(_data = .);
|
||||
.data : { *(.data .data.* .gnu.linkonce.d*) }
|
||||
.bss (NOLOAD) : {
|
||||
. = ALIGN(16);
|
||||
__bss_start = .;
|
||||
*(.bss .bss.*)
|
||||
*(COMMON)
|
||||
__bss_end = .;
|
||||
}
|
||||
_end = .;
|
||||
|
||||
/DISCARD/ : { *(.comment) *(.gnu*) *(.note*) *(.eh_frame*) }
|
||||
}
|
||||
__bss_size = (__bss_end - __bss_start) >> 3;
|
Loading…
Add table
Add a link
Reference in a new issue