Use -Wl,--gc-sections and drop -rdynamic in order to allow the linker to leave out unused functions Signed-off-by: Felix Fietkau <nbd@nbd.name>