No description
  • Assembly 97.3%
  • Makefile 2.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
João Baptista de Paula e Silva 1c0c10257c
Fix gba_cart.ld support for overlays (#4)
* Fix gba_cart.ld support for overlays

The current linker script uses `__iwram_overlay_end - __iwram_overlay_start` as an offset for `__ewram_lma`, which uses only the maximum size of an IWRAM overlay and is wrong even for only 2 overlays (section `.ewram`'s LMA will overlap with `.iwram1`'s LMA). This fix makes it correctly consider the total size of all overlays when computing the LMA for section `.ewram`.

* Remove overlay references on main section

The original section definition for `.iwram` includes all sections that start with `.iwram` on it, which means code supposed to go in IWRAM overlays would be placed on the `.iwram` definition, rendering the overlay feature useless. This commit fix this patch.
2025-05-02 19:56:02 +01:00
.gitignore ignore generated files 2019-07-17 17:42:12 +01:00
3dsx.ld Comprehensive TLS section alignment (#9) 2024-02-13 22:57:34 +00:00
3dsx.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
3dsx_crt0.s return to global exit function 2019-07-17 17:43:53 +01:00
dldi.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm7.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm7.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
ds_arm7_crt0.s explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm7_iwram.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm7_iwram.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
ds_arm7_vram.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm7_vram.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
ds_arm9.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_arm9.mem move dtcm to overlay end of ewram 2020-06-05 08:49:36 +01:00
ds_arm9.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
ds_arm9_crt0.s explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_cart.ld explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
ds_cart.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
ds_cart_crt0.s explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
dsi_arm9.mem move dtcm to overlay end of ewram 2020-06-05 08:49:36 +01:00
dsi_arm9.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
er_crt0.s explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
gba.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
gba_cart.ld Fix gba_cart.ld support for overlays (#4) 2025-05-02 19:56:02 +01:00
gba_crt0.s GBA: Don't crash after returning from main() (#2) 2020-12-10 08:57:00 +00:00
gba_er.ld use crt0 as startup section 2016-11-21 12:24:08 +00:00
gba_er.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
gba_mb.ld fix iwram file trickery 2019-05-04 11:09:38 +01:00
gba_mb.specs Restore inadvertently deleted gba multiboot linkscript flag (fix #10) 2024-05-14 22:39:49 +02:00
gp32.ld restore .init section 2016-12-18 02:29:01 +00:00
gp32.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
gp32_crt0.s explicitly MPL crt0 files. Closes #31 2018-08-15 02:02:59 +01:00
gp32_gpsdk.ld changes for latest binutils 2011-01-24 13:45:07 +00:00
gp32_gpsdk.specs Update for gcc 14.1 2024-05-11 18:15:50 +02:00
gp32_gpsdk_crt0.s *** empty log message *** 2006-05-27 13:08:18 +00:00
Makefile Fix Makefile: ensure directory creation before object compilation (#11) 2025-05-02 19:55:19 +01:00