From 9d621f9b6afe81e74b4432fcd6c3c8e911611bb1 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sun, 2 Apr 2023 20:37:37 +0100 Subject: [PATCH] Add shstrtab section for lld --- agb/gba.ld | 4 ++++ agb/gba_mb.ld | 4 ++++ book/games/pong/gba.ld | 4 ++++ book/games/pong/gba_mb.ld | 4 ++++ examples/combo/gba.ld | 4 ++++ examples/combo/gba_mb.ld | 4 ++++ examples/hyperspace-roll/gba.ld | 4 ++++ examples/hyperspace-roll/gba_mb.ld | 4 ++++ examples/the-hat-chooses-the-wizard/gba.ld | 4 ++++ examples/the-purple-night/gba.ld | 4 ++++ examples/the-purple-night/gba_mb.ld | 4 ++++ template/gba.ld | 4 ++++ template/gba_mb.ld | 4 ++++ 13 files changed, 52 insertions(+) diff --git a/agb/gba.ld b/agb/gba.ld index 5665df24..4190e45b 100644 --- a/agb/gba.ld +++ b/agb/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/agb/gba_mb.ld b/agb/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/agb/gba_mb.ld +++ b/agb/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/book/games/pong/gba.ld b/book/games/pong/gba.ld index 5665df24..4190e45b 100644 --- a/book/games/pong/gba.ld +++ b/book/games/pong/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/book/games/pong/gba_mb.ld b/book/games/pong/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/book/games/pong/gba_mb.ld +++ b/book/games/pong/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/combo/gba.ld b/examples/combo/gba.ld index 5665df24..4190e45b 100644 --- a/examples/combo/gba.ld +++ b/examples/combo/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/combo/gba_mb.ld b/examples/combo/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/examples/combo/gba_mb.ld +++ b/examples/combo/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/hyperspace-roll/gba.ld b/examples/hyperspace-roll/gba.ld index 5665df24..4190e45b 100644 --- a/examples/hyperspace-roll/gba.ld +++ b/examples/hyperspace-roll/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/hyperspace-roll/gba_mb.ld b/examples/hyperspace-roll/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/examples/hyperspace-roll/gba_mb.ld +++ b/examples/hyperspace-roll/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/the-hat-chooses-the-wizard/gba.ld b/examples/the-hat-chooses-the-wizard/gba.ld index 5665df24..4190e45b 100644 --- a/examples/the-hat-chooses-the-wizard/gba.ld +++ b/examples/the-hat-chooses-the-wizard/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/the-purple-night/gba.ld b/examples/the-purple-night/gba.ld index 5665df24..4190e45b 100644 --- a/examples/the-purple-night/gba.ld +++ b/examples/the-purple-night/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/examples/the-purple-night/gba_mb.ld b/examples/the-purple-night/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/examples/the-purple-night/gba_mb.ld +++ b/examples/the-purple-night/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/template/gba.ld b/template/gba.ld index 5665df24..4190e45b 100644 --- a/template/gba.ld +++ b/template/gba.ld @@ -74,6 +74,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) } diff --git a/template/gba_mb.ld b/template/gba_mb.ld index 1547960f..0f3ef446 100644 --- a/template/gba_mb.ld +++ b/template/gba_mb.ld @@ -72,6 +72,10 @@ SECTIONS { __ewram_rom_length_bytes = __ewram_data_end - __ewram_data_start; __ewram_rom_length_halfwords = (__ewram_rom_length_bytes + 1) / 2; + .shstrtab : { + *(.shstrtab) + } + /* debugging sections */ /* Stabs */ .stab 0 : { *(.stab) }