fix 879 - support for --gc-sections

- pin .deh_eh and .minfo by emitting fake references in dso startup code

- enable --gc-sections linker switch
Merge pull request #3597 from MartinNowak/fix879

fix 879 - support for --gc-sections