I've attached a diff of minor ld script changes:
I've added wildcards to the input section names.
This fixes the script for use with the "-ffunction-sections
-fdata-sections -Wl,--gc-sections" options when compiling/linking.
I've also discarded the .eh_frame section. This section is emitted by
GCC 4.4, but not 4.5.
Discarding it doesn't appear to break anything. I suspect this is
used for C++ exception implementation.
I found this to be a problem when building with GCC 4.4 (arm-elf),
because the USB DFU demo exceeded the 8k I allowed for it.
Does anyone know exactly what this section is or how it should be handled?
Black Sphere Technologies Ltd.
Mobile: +64 27 777 2182
Tel: +64 9 478 8885