bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11817] Linker crash due to compressed debug section change


From: hjl dot tools at gmail dot com
Subject: [Bug ld/11817] Linker crash due to compressed debug section change
Date: 14 Jul 2010 03:31:35 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-07-14 
03:31 -------
This change:

+  if (syms)
+    {
+      /* We want to relocate the data we've already read (and
+        decompressed), so we store a pointer to the data in
+        the bfd_section, and tell it that the contents are
+        already in memory.  */
+      BFD_ASSERT (msec->contents == NULL && (msec->flags & SEC_IN_MEMORY) == 
0);
+      msec->contents = *section_buffer;
+      msec->flags |= SEC_IN_MEMORY;
+      msec->size = *section_size;
+      *section_buffer
+         = bfd_simple_get_relocated_section_contents (abfd, msec, NULL, syms);
+      if (! *section_buffer)
+       return FALSE;
+    }

looks wrong. DWARF functions shouldn't touch fields in bfd_section.

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]