[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 |
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 ld/17226] New: ld --gc-sections segfaults on sparc-linux, mikpelinux at gmail dot com, 2014/08/03
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux, mikpelinux at gmail dot com, 2014/08/03
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux,
mikpelinux at gmail dot com <=
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux, amodra at gmail dot com, 2014/08/03
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux, mikpelinux at gmail dot com, 2014/08/04
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux, cvs-commit at gcc dot gnu.org, 2014/08/04
- [Bug ld/17226] ld --gc-sections segfaults on sparc-linux, amodra at gmail dot com, 2014/08/04