This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
A patch for binutils.texi
- To: binutils at sourceware dot cygnus dot com
- Subject: A patch for binutils.texi
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 15 Jun 2000 12:00:59 -0700
- Cc: Ian Lance Taylor <ian at zembu dot com>
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