I try add `-L--gc-sections` to dmd to workaround this issue.
I also try `-L-dead_strip` on macOS, it work as expected.I do some google, some one suggestion use with `-ffunction-sections`, `-f fdata-sections`, dmd seems not support it.
Any tips to work this around ?