
Dear Luigi 'Comio' Mantellini,
In message 1291545952-26761-2-git-send-email-luigi.mantellini@idf-hit.com you wrote:
When available, enable the CC -ffunction-sections/-fdata-sections options and the LD --gc-sections in order to isolate and remove from final executable the unused functions.
...
config.mk | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
Why do you ignore my previous review comments?
You cannot simply turn this feature on globally for all boards. You will have to make appropriate adjustments more or less everywhere:
- some architectures already have these options set, so these should be removed from the architecture / board specific config files
- other architectures have this NOT set, and they need adjustments to the respective inker scripts.
As is, your patch breaks a zillion of boards.
Best regards,
Wolfgang Denk