diff options
author | Nick Clifton <nickc@redhat.com> | 2006-02-28 16:09:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-02-28 16:09:01 +0000 |
commit | f9d4ad2a13ff24a5095d19a59784517b274c45dc (patch) | |
tree | 05b733b64cdfd1bc306ae97c00291dea9041fa56 /binutils/doc | |
parent | 9f6f925e1e1a5aee784d0e04663e3c7a4dc76f55 (diff) | |
download | gdb-f9d4ad2a13ff24a5095d19a59784517b274c45dc.zip gdb-f9d4ad2a13ff24a5095d19a59784517b274c45dc.tar.gz gdb-f9d4ad2a13ff24a5095d19a59784517b274c45dc.tar.bz2 |
* objcopy.c (use_alt_mach_code): Change type to unsigned long.
(copy_object): If bfd_alt_mach_code fails emit a more helpful message
and if the target architecture is ELF use the alternative as replacement
value for the e_machine number.
(copy_main): Use strtoul to parse the number provided with the
--alt-mach-code switch.
* doc/binutils.texi (--alt-mach-code): Document that this switch can now
set the absolute e_machine value.
Diffstat (limited to 'binutils/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 828eb5d..aaa0951 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -1399,7 +1399,9 @@ If the output architecture has alternate machine codes, use the @var{index}th code instead of the default one. This is useful in case a machine is assigned an official code and the tool-chain adopts the new code, but other applications still depend on the original code -being used. +being used. For ELF based architectures if the @var{index} +alternative does not exist then the value is treated as an absolute +number to be stored in the e_machine field of the ELF header. @item --writable-text Mark the output text as writable. This option isn't meaningful for all |