Split sections feature should pass -fdata-sections -ffunction-sections to the C compiler
Currently, the -split-sections
flag is only respected by the NCG/LLVM backends, but not the unregisterised backend. The GHC driver does not pass -fdata-sections
and -ffunction-sections
to the C compiler, which results in excessive executable sizes. It looks like to me that these flags should be passed to the C compiler, both by the GHC driver and also by hadrian, when -split-sections
flag or the split_sections
flavour transformer is enabled.