mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Merge pull request #148 from gwilymk/check-gba-ld-consistency
Check if all gba.ld and gba_mb.ld files are the same
This commit is contained in:
commit
df9283f092
6
.github/workflows/linker-script.yml
vendored
6
.github/workflows/linker-script.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: Enforce gba.ld consistency
|
name: Enforce gba.ld consistency
|
||||||
|
|
||||||
on: push
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -9,6 +9,6 @@ jobs:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Check if gba.ld files are identical
|
- 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
|
- 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
|
||||||
|
|
|
@ -2,6 +2,7 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
|
|
||||||
ENTRY(__start)
|
ENTRY(__start)
|
||||||
|
EXTERN(__RUST_INTERRUPT_HANDLER)
|
||||||
|
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K
|
ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K
|
||||||
|
@ -101,6 +102,8 @@ SECTIONS {
|
||||||
.debug_typenames 0 : { *(.debug_typenames) }
|
.debug_typenames 0 : { *(.debug_typenames) }
|
||||||
.debug_varnames 0 : { *(.debug_varnames) }
|
.debug_varnames 0 : { *(.debug_varnames) }
|
||||||
|
|
||||||
|
.debug_ranges 0 : { *(.debug_ranges) }
|
||||||
|
|
||||||
/* discard anything not already mentioned */
|
/* discard anything not already mentioned */
|
||||||
/DISCARD/ : { *(*) }
|
/DISCARD/ : { *(*) }
|
||||||
}
|
}
|
Loading…
Reference in a new issue