How to report removed input sections

Please note that this is only possible if every function is placed in its own section. The linker can then be made to report which sections are unreferenced and remove them. The required arguments for the compiler are: -fdata-sections, -ffunction-sections, and for the linker, the required arguments are: -Wl,--gc-sections -Wl,--print-gc-sections.