aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:53 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:53 +0000
commitd0514c4914c5e635501836e54ea92b0a8fed1189 (patch)
treecfabd781865789eac0e9acb7726adfd61cf061ad /binutils/doc
parent9eeefea8ddc2fa57330c8b3c0fae600481ec06a5 (diff)
downloadgdb-d0514c4914c5e635501836e54ea92b0a8fed1189.zip
gdb-d0514c4914c5e635501836e54ea92b0a8fed1189.tar.gz
gdb-d0514c4914c5e635501836e54ea92b0a8fed1189.tar.bz2
Add --input-osabi and --output-osabi to elfedit.
binutils/ 2010-08-23 H.J. Lu <hongjiu.lu@intel.com> * elfedit.c (input_elf_osabi): New. (output_elf_osbi): Likewise. (osabis): Likewise. (elf_osabi): Likewise. (update_elf_header): Support updating ELF OSABI. (make_qualified_name): Break long line. (command_line_switch): Add OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI. (options): Likewise. (usage): Add --input-osabi and --output-osabi. (main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI. * doc/binutils.texi: Document --input-osabi and --output-osabi for elfedit. binutils/testsuite/ 2010-08-23 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-3.d: New. * binutils-all/elfedit.exp: Run elfedit-3.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi19
1 files changed, 17 insertions, 2 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 9f374f8..0f0d8ee 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -4121,8 +4121,10 @@ objdump(1), and the Info entries for @file{binutils}.
@c man begin SYNOPSIS elfedit
elfedit [@option{--input-mach=}@var{machine}]
[@option{--input-type=}@var{type}]
+ [@option{--input-osabi=}@var{osbi}]
@option{--output-mach=}@var{machine}
@option{--output-type=}@var{type}
+ @option{--output-osabi=}@var{osbi}
[@option{-v}|@option{--version}]
[@option{-h}|@option{--help}]
@var{elffile}@dots{}
@@ -4142,8 +4144,8 @@ which fields in the ELF header should be updated.
@c man begin OPTIONS elfedit
The long and short forms of options, shown here as alternatives, are
-equivalent. At least one of the @option{--output-mach} and
-@option{--output-type} options must be given.
+equivalent. At least one of the @option{--output-mach},
+@option{--output-type} and @option{--output-osabi} options must be given.
@table @env
@@ -4168,6 +4170,19 @@ The supported ELF file types are, @var{rel}, @var{exec} and @var{dyn}.
Change the ELF file type in the ELF header to @var{type}. The
supported ELF types are the same as @option{--input-type}.
+@itemx --input-osabi=@var{osabi}
+Set the matching input ELF file OSABI to @var{osbi}. If
+@option{--input-osabi} isn't specified, it will match any ELF OSABIs.
+
+The supported ELF OSABIs are, @var{none}, @var{HPUX}, @var{NetBSD},
+@var{Linux}, @var{Hurd}, @var{Solaris}, @var{AIX}, @var{Irix},
+@var{FreeBSD}, @var{TRU64}, @var{Modesto}, @var{OpenBSD}, @var{OpenVMS},
+@var{NSK}, @var{AROS} and @var{FenixOS}.
+
+@itemx --output-osabi=@var{osabi}
+Change the ELF OSABI in the ELF header to @var{type}. The
+supported ELF OSABI are the same as @option{--input-osabi}.
+
@item -v
@itemx --version
Display the version number of @command{elfedit}.