bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/17739] Assertion fail ../../bfd/elf32-sh.c:4504 on sh4 when comp


From: hjl.tools at gmail dot com
Subject: [Bug ld/17739] Assertion fail ../../bfd/elf32-sh.c:4504 on sh4 when compiling Qt5
Date: Mon, 20 Jun 2016 12:39:32 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17739

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to John Paul Adrian Glaubitz from comment #8)
> Hello!
> 
> Is there any chance to get this fixed? Any pointers to what exactly is wrong?
> 
> This bug is currently the last big blocker we are seeing on SH, all other
> issues have been ironed out and both the kernel and the toolchain are
> generally in good shape. Just this remaining issue which prevents us from
> building qt5.
> 
> Adrian

You can set CHECK_RELOCS_AFTER_OPEN_INPUT to yes in ld for SH and update
SH backend to check relocations after opening all input files.  It will
simplify --gc-sections:

commit e66cdd681f47dc51beaeee3d813f1c9cba27dedf
Author: H.J. Lu <address@hidden>
Date:   Wed Apr 20 17:12:46 2016 -0700

    Remove x86 gc_sweep_hook

    Since x86 backends never see the removed sections, there is no need
    for gc_sweep_hook.

      * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
      (elf_backend_gc_sweep_hook): Likewise.
      * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
      (elf_backend_gc_sweep_hook): Likewise.

See how it is done for x86 backends.

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