Similar to what we do on other architectures with .eh_frame. Reduces
the growth when compiling kernels with clang.
Index: arch/arm/conf/ldscript.tail
===================================================================
RCS file: /cvs/src/sys/arch/arm/conf/ldscript.tail,v
retrieving revision 1.4
diff -u -p -r1.4 ldscript.tail
--- arch/arm/conf/ldscript.tail 27 Jun 2009 14:44:39 -0000 1.4
+++ arch/arm/conf/ldscript.tail 26 Oct 2017 15:29:41 -0000
@@ -49,5 +49,9 @@
_end = .;
_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
PROVIDE (end = .);
+ /DISCARD/ :
+ {
+ *(.ARM.exidx)
+ }
}