Skip to content

Commit

Permalink
dist/tools/insufficient_memory: add RISC-V failure mode
Browse files Browse the repository at this point in the history
On RISC-V a RAM overlow is reported as:

    /opt/xpack-riscv-none-elf-gcc-13.2.0-2/bin/../lib/gcc/riscv-none-elf/13.2.0/../../../../riscv-none-elf/bin/ld: section .stack VMA [80003f00,80003fff] overlaps section .bss VMA [800000a8,80003fb7]

This extends the list of patters detecting RAM overflow.
  • Loading branch information
maribu committed Feb 12, 2024
1 parent 270aa70 commit 09040ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/tools/insufficient_memory/create_makefile.ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-sup
if grep -e overflowed \
-e "not within region" \
-e "wraps around address space" \
-e "overlaps section \.bss VMA" \
"$TMPFILE" > /dev/null; then
printf "${CBIG}%s${CRESET}\n" "too big"
BOARDS="${BOARDS} ${BOARD}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ for application in ${APPLICATIONS}; do
if grep -e overflowed \
-e "not within region" \
-e "wraps around address space" \
-e "overlaps section \.bss VMA" \
"$TMPFILE" > /dev/null; then
printf "${CBIG}%s${CRESET}\n" "too big"
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" ADD_BOARDS="${BOARD}" Makefile.ci > /dev/null
Expand Down

0 comments on commit 09040ad

Please sign in to comment.