https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64561
Bug ID: 64561 Summary: [5 Regression] HAVE_LD_PIE_COPYRELOC is defined to 1 for broken linker Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com When GCC is configured with linker without the bug fix for https://sourceware.org/bugzilla/show_bug.cgi?id=17827 it may define HAVE_LD_PIE_COPYRELOC to 1 and generate GCC which will fail to generate working executable as show in the bug report above. The fix is to incorporate the updated testcase in https://sourceware.org/ml/binutils-cvs/2015-01/msg00117.html into the linker feature check.