In src/libelf.c, OmToHeader, it assumes the group_id is at most 6-digit long, which is not necessarily true. See http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=136797 for detail.
Submitted pull request - https://github.com/D-Programming-Language/dmd/pull/3463
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1356ea3ecc8a936a0faa31080348278fb7b8bd74 Issue #6050 fix https://issues.dlang.org/show_bug.cgi?id=6050 Group ID is now workarounded as it was done for `user_id` https://github.com/D-Programming-Language/dmd/commit/02eeed03db2714220a5bcd4a270c84fc4ab65ea3 Merge pull request #3463 from SSPkrolik/patch-1 Issue #6050 fix