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 #339 from sifive/std-c99
Browse files Browse the repository at this point in the history
Fix compliance with C99 and test in Travis
  • Loading branch information
nategraff-sifive authored Aug 14, 2019
2 parents 2e347a6 + 03bc113 commit 63d984a
Show file tree
Hide file tree
Showing 31 changed files with 163 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ install:
# Here's where we actually run the test.
script:
# Build all software for all targets
- docker exec -t host bash -c "export RISCV_PATH=/travis/riscv64-unknown-elf-gcc-8.2.0-2019.05.3-x86_64-linux-ubuntu14 && cd /travis && ./scripts/all-targets-build"
- docker exec -t host bash -c "export RISCV_PATH=/travis/riscv64-unknown-elf-gcc-8.2.0-2019.05.3-x86_64-linux-ubuntu14 && cd /travis && RISCV_CFLAGS=\"$RISCV_CFLAGS\" ./scripts/all-targets-build"
11 changes: 7 additions & 4 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
11 changes: 7 additions & 4 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
11 changes: 7 additions & 4 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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-e31/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-e31/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-e31/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-s51/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-s51/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-s51/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,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
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-u54/metal.default.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,24 @@ SECTIONS

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

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



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

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

PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
Expand Down
15 changes: 8 additions & 7 deletions bsp/qemu-sifive-u54/metal.ramrodata.lds
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,11 @@ SECTIONS

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

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

.fini : {
KEEP (*(SORT_NONE(.fini)))
} >rom AT>rom :flash
Expand Down Expand Up @@ -98,6 +92,13 @@ SECTIONS
PROVIDE( metal_segment_itim_target_start = . );
} >rom AT>rom :itim_init

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

.itim_section : {
*(.itim .itim.*)
} >rom AT>rom :itim_init
Expand Down
11 changes: 7 additions & 4 deletions bsp/qemu-sifive-u54/metal.scratchpad.lds
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,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
11 changes: 7 additions & 4 deletions bsp/sifive-hifive-unleashed/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
Loading

0 comments on commit 63d984a

Please sign in to comment.