Fix Issue 11559 - Optlink crash with more than 2048 modules generated and debug info

https://d.puremagic.com/issues/show_bug.cgi?id=11559