This reverts commit 85132987af. Using ld.gold doesn't help either: /usr/bin/ld.gold: fatal error: ../../../../../mame: mmap: failed to allocate 3020885748 bytes for output file: Cannot allocate memory
85132987af