Commit a41bd886 authored by Dimitris Lampridis's avatar Dimitris Lampridis Committed by Dimitris Lampridis

sw/fw: use 4-byte linker alignment and rationalise start/end section symbol names

parent 51709bc9
......@@ -28,7 +28,7 @@ _entry:
csrrw t0, mscratch, t0
/* clear the bss segment */
la t0, _fbss
la t0, _bss_start
la t1, _end
1:
#ifdef __riscv64
......
......@@ -13,7 +13,7 @@ SECTIONS
/* Begining of code and text segment */
. = 0x00000000;
_ftext = .;
_text_start = .;
PROVIDE( eprol = . );
/* text: Program code section */
......@@ -75,17 +75,17 @@ SECTIONS
/* data: Writable data */
.data : ALIGN(16)
.data : ALIGN(4)
{
/* Start of initialized data segment */
_fdata = .;
_data_start = .;
*(.data)
*(.data.*)
*(.gnu.linkonce.d.*)
} > ram
/* Writable small data segment */
.sdata : ALIGN(16)
.sdata : ALIGN(4)
{
/* 12-bit signed offsets from global pointer */
__global_pointer$ = . + 0x800;
......@@ -105,10 +105,10 @@ SECTIONS
/* Writable uninitialized small data segment */
.sbss : ALIGN(8)
.sbss : ALIGN(4)
{
/* Start of uninitialized data segment */
_fbss = .;
_bss_start = .;
*(.sbss)
*(.sbss.*)
*(.gnu.linkonce.sb.*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment