Hi,
I was talking with Marek and Simon about build options which may be size relevant. The first change is to allow the linker to check for unused code sections. The second change is to let the compiler use get the whole source code instead of only one source file during the final compilation step (ok, it is originally the link step).
These changes reduce the size on an amd64 (default Debian settings with -O2) by around 25%. The size reduction on MIPSel (default OpenWRT settings with -Os) were only by 6%-10%. Marek were still interested and asked me to submit the changes.
Kind regards, Sven