https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70419
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Balint Reczey from comment #1) > Also please fix the error message emitted when trying to link a non-PIE > non-PIC static library to a position independent executable: The error message comes from binutils project so it is hard for the GCC project to fix it. Please report a bug to them (https://sourceware.org/bugzilla/ ).