OUTPUT_ARCH(aarch64) | |
ENTRY(_start) | |
SECTIONS { | |
. = %BASE_ADDR%; | |
.start ALIGN(4) : { | |
*(.text.start) | |
} | |
. = . + 0x01FC; | |
.text ALIGN(4) : { | |
*(.text) | |
*(.text.*) | |
} | |
.rodata ALIGN(4) : { | |
*(.rodata) | |
*(.rodata.*) | |
} | |
.data ALIGN(4) : { | |
*(.data) | |
*(.data.*) | |
} | |
. = %BASE_ADDR%-0x100000 ; | |
.bss ALIGN(16) : { | |
_bss_start = .; | |
*(.bss) | |
*(.bss.*) | |
*(COMMON) | |
/* make _bss_end as 4 bytes alignment */ | |
. = ALIGN(4); | |
_bss_end = .; | |
} | |
} | |