bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-de


From: dannysmith at users dot sourceforge dot net
Subject: [Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink"
Date: 18 Jan 2006 01:40:07 -0000

------- Additional Comments From dannysmith at users dot sourceforge dot net  
2006-01-18 01:40 -------
(In reply to comment #7)
> Created an attachment (id=832)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=832&action=view)
> Create a VMA for the gnu_debuglink section


Almost.  The section needs to be page-aligned.
With this (and inclusion of 'libbfd.h'):

          if (highest_section)
            debuglink_vma = BFD_ALIGN (highest_section->vma
                                       + highest_section->size,
                                       0x1000);

 
I get good, debuggable exe's after going through the -add-gnu-dedug-link step.

Danny

-- 


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

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