RIOT-OS/RIOT — pull request #2207 by gebart (2014-12-17 10:44:48+00:00)
Title: msba2: Use --gc-sections when linking.

- Add `-Wl,--gc-sections` to LDFLAGS
- Add `-fdata-sections` and `-ffunction-sections` to CFLAGS
- Update lpc2387 linker script to keep the isr vector and init
sections when garbage collecting.
- Keep .ctors and .dtors sections (similar to what binutils default
linker script does when building for Linux targets)

I do not own any msba2 hardware or lpc2387 CPUs, please test.
Also affects #1927, msba2 does not seem to need `__attributes__((used))` for syscalls anymore when using LTO.