From 446071f64f0b5c8e9f248c85b27e07f1fba1bc98 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 19 Feb 2013 12:44:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5268 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/PPC/SPC560BCxx/core.s | 4 +++- os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B44.ld | 3 ++- os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B50.ld | 3 ++- os/ports/GCC/PPC/SPC560Pxx/core.s | 4 +++- os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P44.ld | 3 ++- os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P50.ld | 3 ++- os/ports/GCC/PPC/SPC563Mxx/core.s | 2 ++ os/ports/GCC/PPC/SPC56ELxx/core.s | 2 ++ 8 files changed, 18 insertions(+), 6 deletions(-) diff --git a/os/ports/GCC/PPC/SPC560BCxx/core.s b/os/ports/GCC/PPC/SPC560BCxx/core.s index 40521e0f1..e4de3d453 100644 --- a/os/ports/GCC/PPC/SPC560BCxx/core.s +++ b/os/ports/GCC/PPC/SPC560BCxx/core.s @@ -146,7 +146,7 @@ _ivinit: blr - .section .handlers, "ax" + .section .ivors, "ax" .globl IVORS IVORS: @@ -182,6 +182,8 @@ IVOR14: b _IVOR14 .align 4 IVOR15: b _IVOR15 + .section .handlers, "ax" + /* * Unhandled exceptions handler. */ diff --git a/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B44.ld b/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B44.ld index acca014fb..73b25bb09 100644 --- a/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B44.ld +++ b/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B44.ld @@ -49,6 +49,7 @@ SECTIONS { KEEP(*(.bam)) KEEP(*(.coreinit)) + KEEP(*(.handlers)) KEEP(*(.crt0)) . = ALIGN(0x00000800); KEEP(*(.vectors)) @@ -58,7 +59,7 @@ SECTIONS allocate code or data in the first 4KB by using special sections.*/ . = ALIGN(0x00001000); __ivpr_base__ = .; - KEEP(*(.handlers)) + KEEP(*(.ivors)) } > flash constructors : ALIGN(4) SUBALIGN(4) diff --git a/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B50.ld b/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B50.ld index a86846e4c..56b83cfe1 100644 --- a/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B50.ld +++ b/os/ports/GCC/PPC/SPC560BCxx/ld/SPC560B50.ld @@ -49,6 +49,7 @@ SECTIONS { KEEP(*(.bam)) KEEP(*(.coreinit)) + KEEP(*(.handlers)) KEEP(*(.crt0)) . = ALIGN(0x00000800); KEEP(*(.vectors)) @@ -58,7 +59,7 @@ SECTIONS allocate code or data in the first 4KB by using special sections.*/ . = ALIGN(0x00001000); __ivpr_base__ = .; - KEEP(*(.handlers)) + KEEP(*(.ivors)) } > flash constructors : ALIGN(4) SUBALIGN(4) diff --git a/os/ports/GCC/PPC/SPC560Pxx/core.s b/os/ports/GCC/PPC/SPC560Pxx/core.s index 6311024b5..43d145ddd 100644 --- a/os/ports/GCC/PPC/SPC560Pxx/core.s +++ b/os/ports/GCC/PPC/SPC560Pxx/core.s @@ -146,7 +146,7 @@ _ivinit: blr - .section .handlers, "ax" + .section .ivors, "ax" .globl IVORS IVORS: @@ -182,6 +182,8 @@ IVOR14: b _IVOR14 .align 4 IVOR15: b _IVOR15 + .section .handlers, "ax" + /* * Unhandled exceptions handler. */ diff --git a/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P44.ld b/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P44.ld index 075aae5e9..b4db1d25b 100644 --- a/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P44.ld +++ b/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P44.ld @@ -49,6 +49,7 @@ SECTIONS { KEEP(*(.bam)) KEEP(*(.coreinit)) + KEEP(*(.handlers)) KEEP(*(.crt0)) . = ALIGN(0x00000800); KEEP(*(.vectors)) @@ -58,7 +59,7 @@ SECTIONS allocate code or data in the first 64KB by using special sections.*/ . = ALIGN(0x00010000); __ivpr_base__ = .; - KEEP(*(.handlers)) + KEEP(*(.ivors)) } > flash constructors : ALIGN(4) SUBALIGN(4) diff --git a/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P50.ld b/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P50.ld index 64e10aeb4..37b737bc8 100644 --- a/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P50.ld +++ b/os/ports/GCC/PPC/SPC560Pxx/ld/SPC560P50.ld @@ -49,6 +49,7 @@ SECTIONS { KEEP(*(.bam)) KEEP(*(.coreinit)) + KEEP(*(.handlers)) KEEP(*(.crt0)) . = ALIGN(0x00000800); KEEP(*(.vectors)) @@ -58,7 +59,7 @@ SECTIONS allocate code or data in the first 64KB by using special sections.*/ . = ALIGN(0x00010000); __ivpr_base__ = .; - KEEP(*(.handlers)) + KEEP(*(.ivors)) } > flash constructors : ALIGN(4) SUBALIGN(4) diff --git a/os/ports/GCC/PPC/SPC563Mxx/core.s b/os/ports/GCC/PPC/SPC563Mxx/core.s index 5d4b1bb8d..d6068a1c8 100644 --- a/os/ports/GCC/PPC/SPC563Mxx/core.s +++ b/os/ports/GCC/PPC/SPC563Mxx/core.s @@ -176,6 +176,8 @@ _ivinit: blr + .section .handlers, "ax" + /* * Unhandled exceptions handler. */ diff --git a/os/ports/GCC/PPC/SPC56ELxx/core.s b/os/ports/GCC/PPC/SPC56ELxx/core.s index 093db3a98..d377275bb 100644 --- a/os/ports/GCC/PPC/SPC56ELxx/core.s +++ b/os/ports/GCC/PPC/SPC56ELxx/core.s @@ -505,6 +505,8 @@ _ivinit: blr + .section .handlers, "ax" + /* * Unhandled exceptions handler. */ -- cgit v1.2.3