bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/13233] --gc-sections discards .debug_types


From: hjl.tools at gmail dot com
Subject: [Bug ld/13233] --gc-sections discards .debug_types
Date: Wed, 28 Sep 2011 19:22:38 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13233

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-09-28 19:22:38 
UTC ---
This patch

---
diff --git a/bfd/elflink.c b/bfd/elflink.c
index a15ad27..42d2e97 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -11670,9 +11670,9 @@ _bfd_elf_gc_mark_extra_sections (struct bfd_link_info
*info,
       /* Keep debug and special sections like .comment when they are
      not part of a group.  */
       for (isec = ibfd->sections; isec != NULL; isec = isec->next)
-    if (elf_next_in_group (isec) == NULL
-        && ((isec->flags & SEC_DEBUGGING) != 0
-        || (isec->flags & (SEC_ALLOC | SEC_LOAD | SEC_RELOC)) == 0))
+    if ((isec->flags & SEC_DEBUGGING) != 0
+        || (elf_next_in_group (isec) == NULL
+        && (isec->flags & (SEC_ALLOC | SEC_LOAD | SEC_RELOC)) == 0))
       isec->gc_mark = 1;
     }
   return TRUE;
---

works for me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]