From 5f2fd8fb54557ba96dae0f650ed6d7732877b9f1 Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sat, 1 Jan 2022 22:11:01 +0000 Subject: [PATCH 1/3] Check if all gba.ld and gba_mb.ld files are the same --- .github/workflows/linker-script.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linker-script.yml b/.github/workflows/linker-script.yml index 4ede0ef9..0cef944a 100644 --- a/.github/workflows/linker-script.yml +++ b/.github/workflows/linker-script.yml @@ -9,6 +9,6 @@ jobs: - name: Check out repository uses: actions/checkout@v2 - name: Check if gba.ld files are identical - run: cmp --silent -- "agb/gba.ld" "template/gba.ld" + run: find -type f -name gba.ld -print0 | xargs -0 -n1 cmp -- agb/gba.ld - name: Check if gba_mb.ld files are identical - run: cmp --silent -- "agb/gba_mb.ld" "template/gba_mb.ld" + run: find -type f -name gba_mb.ld -print0 | xargs -0 -n1 cmp -- agb/gba_mb.ld From 5704531ecbd32260d284f2692b1b7015ab032022 Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sat, 1 Jan 2022 22:15:52 +0000 Subject: [PATCH 2/3] Check consistency on pull request and push --- .github/workflows/linker-script.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linker-script.yml b/.github/workflows/linker-script.yml index 0cef944a..44f1d8b4 100644 --- a/.github/workflows/linker-script.yml +++ b/.github/workflows/linker-script.yml @@ -1,6 +1,6 @@ name: Enforce gba.ld consistency -on: push +on: [push, pull_request] jobs: build: From 0c8ca166f5ef9f2d8b43eb576042684b5ef4657e Mon Sep 17 00:00:00 2001 From: GBA bot Date: Sat, 1 Jan 2022 22:16:53 +0000 Subject: [PATCH 3/3] Update gba.ld in the-hat-chooses-the-wizard --- examples/the-hat-chooses-the-wizard/gba.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/the-hat-chooses-the-wizard/gba.ld b/examples/the-hat-chooses-the-wizard/gba.ld index 3569c174..ba54bc5a 100644 --- a/examples/the-hat-chooses-the-wizard/gba.ld +++ b/examples/the-hat-chooses-the-wizard/gba.ld @@ -2,6 +2,7 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(__start) +EXTERN(__RUST_INTERRUPT_HANDLER) MEMORY { ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K @@ -101,6 +102,8 @@ SECTIONS { .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } + .debug_ranges 0 : { *(.debug_ranges) } + /* discard anything not already mentioned */ /DISCARD/ : { *(*) } } \ No newline at end of file