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

2006-01-26 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2006-01-26 14:56 --- Subject: Re: objcopy trashes PE executable when using "add-gnu-debuglink" Hi Brian, >> PR binutils/1391 >> * objcopy.c (copy_object): For PE format targets set the VMA of a >> newly created gnu_d

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

2006-01-26 Thread Nick Clifton
Hi Brian, PR binutils/1391 * objcopy.c (copy_object): For PE format targets set the VMA of a newly created gnu_debuglink section to a non-zero, aligned, contiguous value. * Makefile.am (objcopy.c): Add a dependency upon libbfd.h. * Makefile.in: Reg

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

2006-01-24 Thread Brian dot Ford at FlightSafety dot com
--- Additional Comments From Brian dot Ford at FlightSafety dot com 2006-01-24 18:42 --- (In reply to comment #9) > binutils/ChangeLog > 2006-01-18 Nick Clifton <[EMAIL PROTECTED]> > > PR binutils/1391 > * objcopy.c (copy_object): For PE format targets set the VMA of a >

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

2006-01-18 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2006-01-18 10:51 --- Hi Guys, I have applied the patch, along with Danny's fix to make sure that the VMA is aligned. The changelog for it is shown below. Cheers Nick binutils/ChangeLog 2006-01-18 Nick Clifton <[EMAIL PROTECTE

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

2006-01-17 Thread dannysmith at users dot sourceforge dot net
--- 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 sect

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

2006-01-16 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2006-01-16 18:18 --- Created an attachment (id=832) --> (http://sourceware.org/bugzilla/attachment.cgi?id=832&action=view) Create a VMA for the gnu_debuglink section -- http://sourceware.org/bugzilla/show_bug.cgi?id=1391 ---

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

2006-01-16 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2006-01-16 18:17 --- Hi Brian, Hi Anastasius, >> Yes, although I am not sure if an easy fix exists. In the meantime >> please could you try the attached patch which might work. The problem >> with it is that it has to guess as to

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

2006-01-12 Thread Brian dot Ford at FlightSafety dot com
--- Additional Comments From Brian dot Ford at FlightSafety dot com 2006-01-12 21:55 --- (In reply to comment #4) > Yes, although I am not sure if an easy fix exists. In the meantime > please could you try the attached patch which might work. The problem > with it is that it has to g

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

2005-10-11 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2005-10-11 16:05 --- Subject: Re: objcopy trashes PE executable when using "add-gnu-debuglink" Hi, > currently one can fix this manually by executing additional step: > objcopy --change-section-vma .gnu_debuglink=+ test_xxx.exe >

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

2005-10-11 Thread Nick Clifton
Hi, currently one can fix this manually by executing additional step: objcopy --change-section-vma .gnu_debuglink=+ test_xxx.exe I did a grep on the sources but could not really find a location where the wrong VMA might be produced.. Could this be a bug in bfd library itself? Yes, although

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

2005-10-04 Thread focht at gmx dot net
--- Additional Comments From focht at gmx dot net 2005-10-04 08:43 --- Hello again, currently one can fix this manually by executing additional step: objcopy --change-section-vma .gnu_debuglink=+ test_xxx.exe Where is the address of first debug section in "objdump -h ". That seems to

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

2005-10-01 Thread focht at gmx dot net
--- Additional Comments From focht at gmx dot net 2005-10-01 09:29 --- Hello, (In reply to comment #1) > > I seem to recall that the PE file format does not allow sections to > start at address 0 and that this causes problems for debug sections. > > Probably the simplest way to fix th

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

2005-09-30 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2005-09-30 15:25 --- Subject: Re: New: objcopy trashes PE executable when using "add-gnu-debuglink" Hi, > Idx Name Size VMA LMA File off Algn > 0 .gnu_debuglink 0018 0268 2