Merge pull request #3011 from MartinNowak/fix11684

[2.065,Reg] fix Issue 11684 - SIGSEGV with ld.bfd version 2.22
Merge branch 'dmd-1.x' of github.com:D-Programming-Language/dmd into dmd-1.x