Pass "--hash-size=31 --reduce-memory-overhead" to ld; fixes trac #5240