https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60465
--- Comment #35 from Sergei Trofimovich <slyfox at inbox dot ru> --- Created attachment 37180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37180&action=edit 0001-ia64-don-t-use-dynamic-relocations-for-local-symbols.patch 0001-ia64-don-t-use-dynamic-relocations-for-local-symbols.patch - how about this patch? It tries to capture any local symbol into gprel64 addressing (as opposed to .got addressing). That way relocation will be static.