From 58e413afce78e97c37fe97db92e60039e1145344 Mon Sep 17 00:00:00 2001 From: Ian Martin Date: Wed, 3 Dec 2014 11:41:59 -0500 Subject: [PATCH] cpu/cc2538: add eh_frame section to the linkerscript Fixes linker errors on some toolchains, for example: ld: foo.elf section `.eh_frame' will not fit in region `cca' ld: region `cca' overflowed by 40 bytes --- cpu/cc2538/cc2538_linkerscript.ld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpu/cc2538/cc2538_linkerscript.ld b/cpu/cc2538/cc2538_linkerscript.ld index c4155cc130..846248359a 100644 --- a/cpu/cc2538/cc2538_linkerscript.ld +++ b/cpu/cc2538/cc2538_linkerscript.ld @@ -96,6 +96,13 @@ SECTIONS } > rom PROVIDE_HIDDEN (__exidx_end = .); + /* exception handling */ + . = ALIGN(4); + .eh_frame : + { + KEEP (*(.eh_frame)) + } > rom + . = ALIGN(4); _etext = .;