This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Missing objcopy changelog entry


This commit is missing a Changelog entry.  It doesn't fix the bug
either.
Danny

===================================================================
RCS file: /cvs/src/src/binutils/objcopy.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- src/binutils/objcopy.c	2005/10/03 19:37:44	1.87
+++ src/binutils/objcopy.c	2005/10/11 16:33:16	1.88
@@ -1349,6 +1349,13 @@
 	  bfd_nonfatal (gnu_debuglink_filename);
 	  return FALSE;
 	}
+
+      if (bfd_get_flavour (obfd) == bfd_target_coff_flavour)
+	/* Try to set the VMA of the section to some non-zero value so
+	   that it will work for PE format files.  (We have no way to
+	   distinguish between COFF and PE flavours).  If this does not
+	   work, just ignore the failure.  */
+	bfd_set_section_vma (obfd, gnu_debuglink_section, 0xf0000000);
     }
 
   if (bfd_count_sections (obfd) == 0)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]