From 2e026f08f8ad48cf4a7294d44bb5f72fb1e9a11e Mon Sep 17 00:00:00 2001
From: Astro <astro@spaceboyz.net>
Date: Sun, 21 Jul 2019 00:39:39 +0200
Subject: [PATCH] card10 linker script: discard .ARM.exidx

---
 card10/memory.x | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/card10/memory.x b/card10/memory.x
index b6dcf42b..665e9bc7 100644
--- a/card10/memory.x
+++ b/card10/memory.x
@@ -4,3 +4,12 @@ MEMORY {
     RAM (rwx)  : ORIGIN = 0x20000000, LENGTH = 512k
     SPID (r)   : ORIGIN = 0x80000000, LENGTH = 512M
 }
+
+SECTIONS
+{
+  /DISCARD/ :
+  {
+    /* cortex-m-rt's link.x drops only `.ARM.exidx.*` */
+    *(.ARM.exidx);
+  }
+}
-- 
GitLab