maixbit: changes according to feedback

This commit is contained in:
Yannis Huber
2020-07-04 19:31:05 +02:00
committed by Ron Evans
parent 5ff76aacab
commit 0b94e486c1
7 changed files with 31 additions and 40 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
{
"inherits": ["riscv64"],
"features": ["+a", "+c", "+m", "+f", "+d"],
"build-tags": ["k210", "kendryte"],
"cflags": ["-D=F_EXTENSION"]
"build-tags": ["k210", "kendryte"]
}
+5 -5
View File
@@ -18,7 +18,7 @@ SECTIONS
* See: http://blog.japaric.io/stack-overflow-protection/ */
.stack (NOLOAD) :
{
. = ALIGN(8);
. = ALIGN(16);
. += _stack_size;
_stack_top = .;
} >RAM
@@ -29,25 +29,25 @@ SECTIONS
/* Globals with initial value */
.data :
{
. = ALIGN(8);
. = ALIGN(4);
/* see https://gnu-mcu-eclipse.github.io/arch/riscv/programmer/#the-gp-global-pointer-register */
PROVIDE( __global_pointer$ = . + (4K / 2) );
_sdata = .; /* used by startup code */
*(.sdata)
*(.data .data.*)
. = ALIGN(8);
. = ALIGN(4);
_edata = .; /* used by startup code */
} >RAM AT>FLASH_TEXT
/* Zero-initialized globals */
.bss :
{
. = ALIGN(8);
. = ALIGN(4);
_sbss = .; /* used by startup code */
*(.sbss)
*(.bss .bss.*)
*(COMMON)
. = ALIGN(8);
. = ALIGN(4);
_ebss = .; /* used by startup code */
} >RAM
+1 -2
View File
@@ -5,8 +5,7 @@
"cflags": [
"--target=riscv64--none",
"-march=rv64gc",
"-mabi=lp64",
"-D=RV64"
"-mabi=lp64"
],
"ldflags": [
"-melf64lriscv"