https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64046
--- Comment #2 from Peter Wu <peter at lekensteyn dot nl> --- Since it is only reproducible with ld.gold, I have duplicated the report at https://sourceware.org/bugzilla/show_bug.cgi?id=17639 What about the application of optimization? Doesn't that have something to do with GCC?