[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections |
Date: |
Mon, 25 Jul 2016 10:25:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20401
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Ozkan,
> We ran into a segfault with the djgpp port of ld in fini_reloc_cookie_rels()
Would it be possible for you to upload a small testcase that reproduces this
problem ?
> - if (cookie->rels && coff_section_data (NULL, sec)->relocs != cookie->rels)
> + if (cookie->rels && (!coff_section_data (NULL, sec) || coff_section_data
> (NULL, sec)->relocs != cookie->rels))
This is certainly a reasonable first step, but we ought to find out why the
coff_section_data is NULL. Probably the linker garbage collection has deleted
the section, but it would be nice to confirm this.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/20401] New: segfault in fini_reloc_cookie_rels() with --gc-sections, sezeroz at gmail dot com, 2016/07/22
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections,
nickc at redhat dot com <=
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, sezeroz at gmail dot com, 2016/07/25
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, nickc at redhat dot com, 2016/07/26
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, sezeroz at gmail dot com, 2016/07/26
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, sezeroz at gmail dot com, 2016/07/26
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, cvs-commit at gcc dot gnu.org, 2016/07/27
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, nickc at redhat dot com, 2016/07/27
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, sezeroz at gmail dot com, 2016/07/27
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, cvs-commit at gcc dot gnu.org, 2016/07/27
- [Bug ld/20401] segfault in fini_reloc_cookie_rels() with --gc-sections, nickc at redhat dot com, 2016/07/27