https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> --- This error is from sysv4.h SUBTARGET_OVERRIDE_OPTIONS. -msecure-plt is unconditionally required. It looks like an oversight that it is not required in the assembler you used (which is that?)