From f9d4ad2a13ff24a5095d19a59784517b274c45dc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 28 Feb 2006 16:09:01 +0000 Subject: * 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. --- binutils/doc/binutils.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'binutils/doc') 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 -- cgit v1.1