------- Additional Comments From hjl dot tools at gmail dot com  2008-07-23 
11:39 -------
(In reply to comment #36)
> Created an attachment (id=2836)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2836&action=view)
> gdb crashes because abbrev_offset is incorrect (zero)
> 
> While trying to read the DWARF info in a linked object file I encountered a 
> bug
> in the compilation unit headers: The abbrev_offset member is always zero.
> This causes the debug_info parser to interpret the attributes incorrectly and 
> I
> encounter the same symptoms in my parser as this PR describes.
> Somehow the linker does not adjust the abbrev_offset in the compilation unit
> header when it concatenates the .debug_abbrev sections of the object files.
> Unfortunatly I don't have the knowledge to point to where this should happen.
> The file org.o in the attachment causes gdb to crash. The file patched.o is 
> OK.
> 
> The Makefile in the attached archive contains more info.

Can you try Linux binutils from

http://www.kernel.org/pub/linux/devel/binutils/

and let me know if it works for you?

-- 


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

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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils
  • [Bug ld/3191]... bjarne dot jensen at se dot transport dot bombardier dot com
    • [Bug ld/... bjarne dot jensen at se dot transport dot bombardier dot com
    • [Bug ld/... hjl dot tools at gmail dot com
    • [Bug ld/... bjarne dot jensen at se dot transport dot bombardier dot com
    • [Bug ld/... hjl dot tools at gmail dot com
    • [Bug ld/... bjarne dot jensen at se dot transport dot bombardier dot com
    • [Bug ld/... hjl dot tools at gmail dot com
    • [Bug ld/... hjl dot tools at gmail dot com
    • [Bug ld/... drow at false dot org
    • [Bug ld/... geir at cray dot com

Reply via email to