https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67215
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 36190 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36190&action=edit A patch For x86, -fno-plt should be handled by ix86_expand_call to generate indirect call via GOT, not by forcing the function address into a register in prepare_call_address.