mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add Riscv example. Risc-V CI. Install baremetal toolchain. Prevent imported crt file from messing up linker search.
14 lines
418 B
Plaintext
14 lines
418 B
Plaintext
EXTERN(main)
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x80000000; /* QEMU default load address to run bios */
|
|
.text : {
|
|
KEEP(*(.text._start)); /* Ensure _start is placed first */
|
|
*(.text*); /* Program code here */
|
|
}
|
|
. = ALIGN (CONSTANT (COMMONPAGESIZE)); /* Make sure linker does not jam data into text section, making text writable */
|
|
.data : {
|
|
*(.data*) /* Stack goes here */
|
|
}
|
|
} |