https://sourceware.org/bugzilla/show_bug.cgi?id=17226
--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Created attachment 7738
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7738&action=edit
proposed patch

It seems that the majority of the elf backends in bfd do a NULL check before
dereferencing local_got_refcounts in their gc_sweep_hook functions.

I don't know if there's a fundamental reason why the sparc backend doesn't do a
NULL check in this context, but adding a NULL check fixes this test case with
no visible regressions (tested 2.25 HEAD, 2.24, and 2.23.2 in cross
environments, tested 2.23.2 natively).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to