opkg: use -ffunction-sections, -fdata-sections and --gc-sections