Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #351 from sifive/bump-submodules
Browse files Browse the repository at this point in the history
Bump submodules
  • Loading branch information
nategraff-sifive authored Aug 26, 2019
2 parents 7c61879 + 18695b8 commit bc7b55a
Show file tree
Hide file tree
Showing 25 changed files with 469 additions and 829 deletions.
61 changes: 22 additions & 39 deletions bsp/freedom-e310-arty/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,24 @@ SECTIONS

.init : {
KEEP (*(.text.metal.init.enter))
KEEP (*(.text.metal.init.*))
KEEP (*(SORT_NONE(.init)))
KEEP (*(.text.libgloss.start))
} >flash AT>flash :flash

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >flash AT>flash :flash



.text : {
*(.text.unlikely .text.unlikely.*)
*(.text.startup .text.startup.*)
*(.text .text.*)
*(.gnu.linkonce.t.*)
} >flash AT>flash :flash

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >flash AT>flash :flash

PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
Expand Down Expand Up @@ -103,35 +106,16 @@ SECTIONS



.litimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_source_start = . );
} >flash AT>flash :flash

.ditimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_target_start = . );
} >itim AT>flash :itim_init

.itim_section : {
.itim : ALIGN(8) {
*(.itim .itim.*)
} >itim AT>flash :itim_init

PROVIDE( metal_segment_itim_target_end = . );
PROVIDE( metal_segment_itim_source_start = LOADADDR(.itim) );
PROVIDE( metal_segment_itim_target_start = ADDR(.itim) );
PROVIDE( metal_segment_itim_target_end = ADDR(.itim) + SIZEOF(.itim) );


.lalign : {
. = ALIGN(8);
PROVIDE( _data_lma = . );
PROVIDE( metal_segment_data_source_start = . );
} >flash AT>flash :flash

.dalign : {
. = ALIGN(8);
PROVIDE( metal_segment_data_target_start = . );
} >ram AT>flash :ram_init

.data : {
.data : ALIGN(8) {
*(.data .data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(8);
Expand All @@ -144,27 +128,26 @@ SECTIONS
*(.srodata.cst4)
*(.srodata.cst2)
*(.srodata .srodata.*)
. = ALIGN(8);
*(.rdata)
*(.rodata .rodata.*)
*(.gnu.linkonce.r.*)
} >ram AT>flash :ram_init

PROVIDE( _edata = . );
PROVIDE( edata = . );
PROVIDE( metal_segment_data_target_end = . );
PROVIDE( metal_segment_data_source_start = LOADADDR(.data) );
PROVIDE( metal_segment_data_target_start = ADDR(.data) );
PROVIDE( metal_segment_data_target_end = ADDR(.data) + SIZEOF(.data) );

. = ALIGN(8);
PROVIDE( _fbss = . );
PROVIDE( __bss_start = . );
PROVIDE( metal_segment_bss_target_start = . );

.bss : {
.bss : ALIGN(8) {
*(.sbss*)
*(.gnu.linkonce.sb.*)
*(.bss .bss.*)
*(.gnu.linkonce.b.*)
*(COMMON)
} >ram AT>ram :ram
PROVIDE( _end = . );
PROVIDE( end = . );
PROVIDE( metal_segment_bss_target_end = . );
PROVIDE( metal_segment_bss_target_start = ADDR(.bss) );
PROVIDE( metal_segment_bss_target_end = ADDR(.bss) + SIZEOF(.bss) );

.stack : {
PROVIDE(metal_segment_stack_begin = .);
Expand Down
61 changes: 22 additions & 39 deletions bsp/freedom-e310-arty/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,24 @@ SECTIONS

.init : {
KEEP (*(.text.metal.init.enter))
KEEP (*(.text.metal.init.*))
KEEP (*(SORT_NONE(.init)))
KEEP (*(.text.libgloss.start))
} >flash AT>flash :flash

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >flash AT>flash :flash



.text : {
*(.text.unlikely .text.unlikely.*)
*(.text.startup .text.startup.*)
*(.text .text.*)
*(.gnu.linkonce.t.*)
} >flash AT>flash :flash

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >flash AT>flash :flash

PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
Expand Down Expand Up @@ -89,35 +92,16 @@ SECTIONS



.litimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_source_start = . );
} >flash AT>flash :flash

.ditimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_target_start = . );
} >itim AT>flash :itim_init

.itim_section : {
.itim : ALIGN(8) {
*(.itim .itim.*)
} >itim AT>flash :itim_init

PROVIDE( metal_segment_itim_target_end = . );


.lalign : {
. = ALIGN(8);
PROVIDE( _data_lma = . );
PROVIDE( metal_segment_data_source_start = . );
} >flash AT>flash :flash
PROVIDE( metal_segment_itim_source_start = LOADADDR(.itim) );
PROVIDE( metal_segment_itim_target_start = ADDR(.itim) );
PROVIDE( metal_segment_itim_target_end = ADDR(.itim) + SIZEOF(.itim) );

.dalign : {
. = ALIGN(8);
PROVIDE( metal_segment_data_target_start = . );
} >ram AT>flash :ram_init

.data : {
.data : ALIGN(8) {
*(.data .data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(8);
Expand All @@ -130,27 +114,26 @@ SECTIONS
*(.srodata.cst4)
*(.srodata.cst2)
*(.srodata .srodata.*)
. = ALIGN(8);
*(.rdata)
*(.rodata .rodata.*)
*(.gnu.linkonce.r.*)
} >ram AT>flash :ram_init

PROVIDE( _edata = . );
PROVIDE( edata = . );
PROVIDE( metal_segment_data_target_end = . );
PROVIDE( metal_segment_data_source_start = LOADADDR(.data) );
PROVIDE( metal_segment_data_target_start = ADDR(.data) );
PROVIDE( metal_segment_data_target_end = ADDR(.data) + SIZEOF(.data) );

. = ALIGN(8);
PROVIDE( _fbss = . );
PROVIDE( __bss_start = . );
PROVIDE( metal_segment_bss_target_start = . );

.bss : {
.bss : ALIGN(8) {
*(.sbss*)
*(.gnu.linkonce.sb.*)
*(.bss .bss.*)
*(.gnu.linkonce.b.*)
*(COMMON)
} >ram AT>ram :ram
PROVIDE( _end = . );
PROVIDE( end = . );
PROVIDE( metal_segment_bss_target_end = . );
PROVIDE( metal_segment_bss_target_start = ADDR(.bss) );
PROVIDE( metal_segment_bss_target_end = ADDR(.bss) + SIZEOF(.bss) );

.stack : {
PROVIDE(metal_segment_stack_begin = .);
Expand Down
61 changes: 22 additions & 39 deletions bsp/freedom-e310-arty/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,24 @@ SECTIONS

.init : {
KEEP (*(.text.metal.init.enter))
KEEP (*(.text.metal.init.*))
KEEP (*(SORT_NONE(.init)))
KEEP (*(.text.libgloss.start))
} >ram AT>ram :ram

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >ram AT>ram :ram



.text : {
*(.text.unlikely .text.unlikely.*)
*(.text.startup .text.startup.*)
*(.text .text.*)
*(.gnu.linkonce.t.*)
} >ram AT>ram :ram

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >ram AT>ram :ram

PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
Expand Down Expand Up @@ -101,35 +104,16 @@ SECTIONS



.litimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_source_start = . );
} >ram AT>ram :ram

.ditimalign : {
. = ALIGN(8);
PROVIDE( metal_segment_itim_target_start = . );
} >itim AT>ram :itim_init

.itim_section : {
.itim : ALIGN(8) {
*(.itim .itim.*)
} >itim AT>ram :itim_init

PROVIDE( metal_segment_itim_target_end = . );
PROVIDE( metal_segment_itim_source_start = LOADADDR(.itim) );
PROVIDE( metal_segment_itim_target_start = ADDR(.itim) );
PROVIDE( metal_segment_itim_target_end = ADDR(.itim) + SIZEOF(.itim) );


.lalign : {
. = ALIGN(8);
PROVIDE( _data_lma = . );
PROVIDE( metal_segment_data_source_start = . );
} >ram AT>ram :ram

.dalign : {
. = ALIGN(8);
PROVIDE( metal_segment_data_target_start = . );
} >ram AT>ram :ram_init

.data : {
.data : ALIGN(8) {
*(.data .data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(8);
Expand All @@ -142,27 +126,26 @@ SECTIONS
*(.srodata.cst4)
*(.srodata.cst2)
*(.srodata .srodata.*)
. = ALIGN(8);
*(.rdata)
*(.rodata .rodata.*)
*(.gnu.linkonce.r.*)
} >ram AT>ram :ram_init

PROVIDE( _edata = . );
PROVIDE( edata = . );
PROVIDE( metal_segment_data_target_end = . );
PROVIDE( metal_segment_data_source_start = LOADADDR(.data) );
PROVIDE( metal_segment_data_target_start = ADDR(.data) );
PROVIDE( metal_segment_data_target_end = ADDR(.data) + SIZEOF(.data) );

. = ALIGN(8);
PROVIDE( _fbss = . );
PROVIDE( __bss_start = . );
PROVIDE( metal_segment_bss_target_start = . );

.bss : {
.bss : ALIGN(8) {
*(.sbss*)
*(.gnu.linkonce.sb.*)
*(.bss .bss.*)
*(.gnu.linkonce.b.*)
*(COMMON)
} >ram AT>ram :ram
PROVIDE( _end = . );
PROVIDE( end = . );
PROVIDE( metal_segment_bss_target_end = . );
PROVIDE( metal_segment_bss_target_start = ADDR(.bss) );
PROVIDE( metal_segment_bss_target_end = ADDR(.bss) + SIZEOF(.bss) );

.stack : {
PROVIDE(metal_segment_stack_begin = .);
Expand Down
Loading

0 comments on commit bc7b55a

Please sign in to comment.