On Sun, 30 Oct 2016 12:04:59 +0100 Andreas Schwab wrote: > On Okt 30 2016, Sergei Trofimovich wrote: > > > Is there a reason to allow R_68K_NONE for non-lazy relocations > > in elf_machine_rela() > > > > + case R_68K_NONE: /* Alright, Wilbur. */ > > + break; > > > > but forbid R_68K_NONE for lazy relocations > > in elf_machine_lazy_rel() > > Because the latter must never happen. Please file a binutils bug with a > self-contained test case. Finally extracted one. Filed as: https://sourceware.org/bugzilla/show_bug.cgi?id=20796 It is triggered by a mix of -Wl,--gc-sections, -u buggy_symbol and a shared library where 'buggy_symbol' comes from. And while at it filed minor bug about R_68K_NONE relocations to be present in final binaries: https://sourceware.org/bugzilla/show_bug.cgi?id=20797 -- Sergei