Skip to content
Permalink
Browse files

fix iwram file trickery

  • Loading branch information
WinterMute committed May 4, 2019
1 parent b96013c commit fade54664298b0ae331a6d538db7bf7db61cf292
Showing with 6 additions and 6 deletions.
  1. +3 −3 gba_cart.ld
  2. +3 −3 gba_mb.ld
@@ -87,8 +87,8 @@ SECTIONS

.text : /* ALIGN (4): */
{
*(EXCLUDE_FILE (*.iwram*) .text)
*(.text .stub .text.* .gnu.linkonce.t.*)
*(EXCLUDE_FILE (*.iwram*) .text*)
*(.gnu.linkonce.t.*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
@@ -161,7 +161,7 @@ SECTIONS
{
__iwram_start__ = ABSOLUTE(.) ;
*(.iwram)
*iwram.*(.text)
*iwram.*(.text*)
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
__iwram_end__ = ABSOLUTE(.) ;
} >iwram = 0xff
@@ -82,8 +82,8 @@ SECTIONS

.text ALIGN (4):
{
*(EXCLUDE_FILE (*.iwram*) .text)
*(.text .stub .text.* .gnu.linkonce.t.*)
*(EXCLUDE_FILE (*.iwram*) .text*)
*(.gnu.linkonce.t.*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
@@ -170,7 +170,7 @@ SECTIONS
{
__iwram_start__ = ABSOLUTE(.) ;
*(.iwram)
*iwram.*(.text)
*iwram.*(.text*)
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
__iwram_end__ = ABSOLUTE(.) ;
} >iwram = 0xff

0 comments on commit fade546

Please sign in to comment.
You can’t perform that action at this time.