Found weird difference between clang and gcc when linking