bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.


From: hjl.tools at gmail dot com
Subject: [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section
Date: Wed, 17 Mar 2021 14:47:19 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
         Resolution|NOTABUG                     |---
   Last reconfirmed|                            |2021-03-17
             Status|RESOLVED                    |REOPENED

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
Try this:

diff --git a/bfd/elf.c b/bfd/elf.c
index 35c31cf40bf..381951da12c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1085,6 +1085,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
       if (name [0] == '.')
   {
     if (strncmp (name, ".debug", 6) == 0
+        || strncmp (name, ".gnu.debuglto_.debug_", 21) == 0
         || strncmp (name, ".gnu.linkonce.wi.", 17) == 0
         || strncmp (name, ".zdebug", 7) == 0)
       flags |= SEC_DEBUGGING | SEC_ELF_OCTETS;

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