Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
a41bd886
Commit
a41bd886
authored
Dec 15, 2022
by
Dimitris Lampridis
Committed by
Dimitris Lampridis
Dec 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/fw: use 4-byte linker alignment and rationalise start/end section symbol names
parent
51709bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
crt0.S
software/firmware/urv/crt0.S
+1
-1
trtl-sections.ld
software/firmware/urv/trtl-sections.ld
+6
-6
No files found.
software/firmware/urv/crt0.S
View file @
a41bd886
...
...
@@ -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
...
...
software/firmware/urv/trtl-sections.ld
View file @
a41bd886
...
...
@@ -13,7 +13,7 @@ SECTIONS
/* Begining of code and text segment */
. = 0x00000000;
_
ftex
t = .;
_
text_star
t = .;
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.*)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment