summaryrefslogtreecommitdiff
path: root/packages/picolibc/1.4.7/0002-Add-ARM-exception-information-to-link-rules.patch
blob: 7fd254d5a135865bb1a818472cce2835525f7797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 9c39c93d4897c9ee1659dd6df7433d097a84be4a Mon Sep 17 00:00:00 2001
From: Keith Packard <keithp@keithp.com>
Date: Wed, 4 Nov 2020 17:36:14 -0800
Subject: [PATCH] Add ARM exception information to link rules

Place any ARM exeception information in ROM for C++ support.

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 picolibc.ld | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/picolibc.ld b/picolibc.ld
index 6d14b396f..ff60fe3a3 100644
--- a/picolibc.ld
+++ b/picolibc.ld
@@ -94,6 +94,16 @@ SECTIONS
 		*(.got .got.*)
 	} >flash AT>flash :text
 
+	.ARM.extab : {
+		*(.ARM.extab* .gnu.linkonce.armextab.*)
+	} >flash AT>flash :text
+
+	PROVIDE (__exidx_start = .);
+	.ARM.exidx : {
+		*(.ARM.exidx*)
+	} >flash AT>flash :text
+	PROVIDE(__exidx_end = .);
+
 	. = ALIGN(8);
 
 	.preinit_array : {
-- 
2.28.0