1ELFEDIT(1) GNU Development Tools ELFEDIT(1)
2
3
4
6 elfedit - Update the ELF header of ELF files.
7
9 elfedit [--input-mach=machine]
10 [--input-type=type]
11 [--input-osabi=osbi]
12 --output-mach=machine
13 --output-type=type
14 --output-osabi=osbi
15 [-v|--version]
16 [-h|--help]
17 elffile...
18
20 elfedit updates the ELF header of ELF files which have the matching ELF
21 machine and file types. The options control how and which fields in
22 the ELF header should be updated.
23
24 elffile... are the ELF files to be updated. 32-bit and 64-bit ELF
25 files are supported, as are archives containing ELF files.
26
28 The long and short forms of options, shown here as alternatives, are
29 equivalent. At least one of the --output-mach, --output-type and
30 --output-osabi options must be given.
31
32 --input-mach=machine
33 Set the matching input ELF machine type to machine. If
34 --input-mach isn't specified, it will match any ELF machine types.
35
36 The supported ELF machine types are, L1OM and x86-64.
37
38 --output-mach=machine
39 Change the ELF machine type in the ELF header to machine. The
40 supported ELF machine types are the same as --input-mach.
41
42 --input-type=type
43 Set the matching input ELF file type to type. If --input-type
44 isn't specified, it will match any ELF file types.
45
46 The supported ELF file types are, rel, exec and dyn.
47
48 --output-type=type
49 Change the ELF file type in the ELF header to type. The supported
50 ELF types are the same as --input-type.
51
52 --input-osabi=osabi
53 Set the matching input ELF file OSABI to osbi. If --input-osabi
54 isn't specified, it will match any ELF OSABIs.
55
56 The supported ELF OSABIs are, none, HPUX, NetBSD, Linux, Hurd,
57 Solaris, AIX, Irix, FreeBSD, TRU64, Modesto, OpenBSD, OpenVMS, NSK,
58 AROS and FenixOS.
59
60 --output-osabi=osabi
61 Change the ELF OSABI in the ELF header to type. The supported ELF
62 OSABI are the same as --input-osabi.
63
64 -v
65 --version
66 Display the version number of elfedit.
67
68 -h
69 --help
70 Display the command line options understood by elfedit.
71
72 @file
73 Read command-line options from file. The options read are inserted
74 in place of the original @file option. If file does not exist, or
75 cannot be read, then the option will be treated literally, and not
76 removed.
77
78 Options in file are separated by whitespace. A whitespace
79 character may be included in an option by surrounding the entire
80 option in either single or double quotes. Any character (including
81 a backslash) may be included by prefixing the character to be
82 included with a backslash. The file may itself contain additional
83 @file options; any such options will be processed recursively.
84
86 readelf(1), and the Info entries for binutils.
87
89 Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
90 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
91 Software Foundation, Inc.
92
93 Permission is granted to copy, distribute and/or modify this document
94 under the terms of the GNU Free Documentation License, Version 1.3 or
95 any later version published by the Free Software Foundation; with no
96 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
97 Texts. A copy of the license is included in the section entitled "GNU
98 Free Documentation License".
99
100
101
102binutils-2.21 2010-12-08 ELFEDIT(1)