aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sam4s/sam4s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sam4s/sam4s.patch')
-rw-r--r--lib/sam4s/sam4s.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sam4s/sam4s.patch b/lib/sam4s/sam4s.patch
new file mode 100644
index 00000000..e486dae1
--- /dev/null
+++ b/lib/sam4s/sam4s.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/sam4s/gcc/gcc/startup_sam4s.c b/lib/sam4s/gcc/gcc/startup_sam4s.c
+index 3792319e..ae19328a 100644
+--- a/lib/sam4s/gcc/gcc/startup_sam4s.c
++++ b/lib/sam4s/gcc/gcc/startup_sam4s.c
+@@ -111,7 +111,7 @@ void ACC_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
+ void UDP_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
+
+ /* Exception Table */
+-__attribute__ ((section(".vectors")))
++__attribute__ ((section(".vectors"))) __attribute__((externally_visible))
+ const DeviceVectors exception_table = {
+
+ /* Configure Initial Stack Pointer, using linker-generated symbols */