[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17226] ld --gc-sections segfaults on sparc-linux

From: mikpelinux at gmail dot com
Subject: [Bug ld/17226] ld --gc-sections segfaults on sparc-linux
Date: Sun, 03 Aug 2014 20:19:47 +0000


--- 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]