A patch for binutils.texi

H . J . Lu hjl@valinux.com
Thu Jun 15 12:01:00 GMT 2000


Ian told me that you cannot use objcopy to copy a relocatable object
file between any two formats. But I know some users do that and
expect it to work. Here is a patch to binutils.texi to clear it
up.

-- 
H.J. Lu (hjl@gnu.org)
---
2000-06-15  H.J. Lu  <hjl@gnu.org>

	* binutils.texi: Put a warning on copying relocatable object
	files between two different formats.

--- /work/gnu/import/binutils/src/binutils/binutils.texi	Wed Apr  5 11:14:05 2000
+++ ./binutils.texi	Thu Jun 15 10:51:50 2000
@@ -895,6 +895,9 @@ file to another.  @code{objcopy} uses th
 read and write the object files.  It can write the destination object
 file in a format different from that of the source object file.  The
 exact behavior of @code{objcopy} is controlled by command-line options.
+Note that @code{objcopy} should be able to copy a fully linked file
+between any two formats. However, copying a relocatable object file
+between any two formats may not work as expected.
 
 @code{objcopy} creates temporary files to do its translations and
 deletes them afterward.  @code{objcopy} uses @sc{bfd} to do all its


More information about the Binutils mailing list