https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120145
--- Comment #24 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Eric, I have removed this line from patches and rebuild the same commit. > > It fails as well. Thanks. Something else looks suspicious in config/sparc/openbsd64.h: @@ -42,10 +39,17 @@ along with GCC; see the file COPYING3. If not see while (0) #undef ASM_SPEC +#ifdef PIE_DEFAULT #define ASM_SPEC "\ +-s %{fpic|fPIC:-K PIC} %{!fno-pie: %{!p: %{!pg: -K PIC}}} \ +%(asm_cpu) %(asm_arch) \ +" +#else +#define ASM_SPEC "\ -s %{" FPIE_OR_FPIC_SPEC ":-K PIC} \ %(asm_cpu) %(asm_arch) \ " +#endif /* Layout of source language data types. */ #undef WCHAR_TYPE Can you remove it as well?