bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21524] Assert on ld.bfd with -r and --gc-sections


From: amodra at gmail dot com
Subject: [Bug ld/21524] Assert on ld.bfd with -r and --gc-sections
Date: Mon, 02 Oct 2017 06:36:32 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
                 CC|                            |amodra at gmail dot com

--- Comment #8 from Alan Modra <amodra at gmail dot com> ---
See this workaround in elf64-ppc.c

          /* For ld -r, remove relocations in debug sections against
             symbols defined in discarded sections.  Not done for
             non-debug to preserve relocs in .eh_frame which the
             eh_frame editing code expects to be present.  */
          if (bfd_link_relocatable (info)
              && (input_section->flags & SEC_DEBUGGING))
            wrel--;

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