1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 17:52:47 +01:00

dist/tools/insufficient_memory: add RISC-V failure mode

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.

Co-authored-by: benpicco <benpicco@googlemail.com>
This commit is contained in:
Marian Buschsieweke 2024-02-12 16:03:29 +01:00
parent 270aa7012f
commit 3718f48bc2
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ for BOARD in $(EXTERNAL_BOARD_DIRS="" make --no-print-directory info-boards-sup
if grep -e overflowed \ if grep -e overflowed \
-e "not within region" \ -e "not within region" \
-e "wraps around address space" \ -e "wraps around address space" \
-e "overlaps section" \
"$TMPFILE" > /dev/null; then "$TMPFILE" > /dev/null; then
printf "${CBIG}%s${CRESET}\n" "too big" printf "${CBIG}%s${CRESET}\n" "too big"
BOARDS="${BOARDS} ${BOARD}" BOARDS="${BOARDS} ${BOARD}"

View File

@ -64,6 +64,7 @@ for application in ${APPLICATIONS}; do
if grep -e overflowed \ if grep -e overflowed \
-e "not within region" \ -e "not within region" \
-e "wraps around address space" \ -e "wraps around address space" \
-e "overlaps section" \
"$TMPFILE" > /dev/null; then "$TMPFILE" > /dev/null; then
printf "${CBIG}%s${CRESET}\n" "too big" printf "${CBIG}%s${CRESET}\n" "too big"
make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" ADD_BOARDS="${BOARD}" Makefile.ci > /dev/null make -f "$(dirname "$0")"/Makefile.for_sh DIR="${RIOTBASE}/${application}" ADD_BOARDS="${BOARD}" Makefile.ci > /dev/null