From fae83c43c105bb51326ab9d1464df9b912447b48 Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Wed, 25 Jan 2012 22:05:09 -0800 Subject: Discard .ARM.exidx section to make newlib 64bit (long long) printf support work. This may need to be fixed if using C++. --- lib/stm32/f4/libopencm3_stm32f4.ld | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/stm32/f4/libopencm3_stm32f4.ld') diff --git a/lib/stm32/f4/libopencm3_stm32f4.ld b/lib/stm32/f4/libopencm3_stm32f4.ld index 57ca309..76c5e60 100644 --- a/lib/stm32/f4/libopencm3_stm32f4.ld +++ b/lib/stm32/f4/libopencm3_stm32f4.ld @@ -59,6 +59,11 @@ SECTIONS * You may need to fix this if you're using C++. */ /DISCARD/ : { *(.eh_frame) } + /* + * Another section used by C++ stuff, appears when using newlib with 64bit + * (long long) printf support - discard it for now. + */ + /DISCARD/ : { *(.ARM.exidx) } . = ALIGN(4); end = .; -- cgit v1.2.3