Adding size relevant build options
Status from this message: Applied in revision b80d07f.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | alfred: Add CFLAGS to the linker stepMakefile vis/ | +2 | 1 reply | |
| 2/9 | batctl: Add CFLAGS to the linker stepMakefile | +1 | 1 reply | |
| 3/9 | batmand: Add CFLAGS to the linker stepMakefile | +1 | 0 replies | |
| 4/9 | vis: Add CFLAGS to the linker stepMakefile | +1 | 0 replies | |
| 5/9 | alfred: Use section garbage collection to reduce binary sizealfred/ | +3 | 1 reply | |
| 5/9 | batman-adv-devel: Enable Link-time optimizationbatman-adv-devel/ | +2 | 1 reply | |
| 6/9 | alfred: Enable Link-time optimizationalfred/ | +2 | 1 reply | |
| 7/9 | batman-adv-devel: Add missing TARGET_* flags to batctl compilebatman-adv-devel/ | +3 | 3 replies | |
| 8/9 | batman-adv-devel: Use section garbage collection to reduce binary sizebatman-adv-devel/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [B.A.T.M.A.N.] [PATCH 0/9] Adding size relevant build options
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