https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81829
--- Comment #3 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> --- marxin's patch: http://gcc.gnu.org/ml/gcc-patches/2017-08/msg01116.html But this patch doesn't work while /my_bin/bin contains a symlink.