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=osabi]
12 --output-mach=machine
13 --output-type=type
14 --output-osabi=osabi
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, i386, IAMCU, L1OM, K1OM and
37 x86-64.
38
39 --output-mach=machine
40 Change the ELF machine type in the ELF header to machine. The
41 supported ELF machine types are the same as --input-mach.
42
43 --input-type=type
44 Set the matching input ELF file type to type. If --input-type
45 isn't specified, it will match any ELF file types.
46
47 The supported ELF file types are, rel, exec and dyn.
48
49 --output-type=type
50 Change the ELF file type in the ELF header to type. The supported
51 ELF types are the same as --input-type.
52
53 --input-osabi=osabi
54 Set the matching input ELF file OSABI to osabi. If --input-osabi
55 isn't specified, it will match any ELF OSABIs.
56
57 The supported ELF OSABIs are, none, HPUX, NetBSD, GNU, Linux (alias
58 for GNU), Solaris, AIX, Irix, FreeBSD, TRU64, Modesto, OpenBSD,
59 OpenVMS, NSK, AROS and FenixOS.
60
61 --output-osabi=osabi
62 Change the ELF OSABI in the ELF header to osabi. The supported ELF
63 OSABI are the same as --input-osabi.
64
65 -v
66 --version
67 Display the version number of elfedit.
68
69 -h
70 --help
71 Display the command line options understood by elfedit.
72
73 @file
74 Read command-line options from file. The options read are inserted
75 in place of the original @file option. If file does not exist, or
76 cannot be read, then the option will be treated literally, and not
77 removed.
78
79 Options in file are separated by whitespace. A whitespace
80 character may be included in an option by surrounding the entire
81 option in either single or double quotes. Any character (including
82 a backslash) may be included by prefixing the character to be
83 included with a backslash. The file may itself contain additional
84 @file options; any such options will be processed recursively.
85
87 readelf(1), and the Info entries for binutils.
88
90 Copyright (c) 1991-2016 Free Software Foundation, Inc.
91
92 Permission is granted to copy, distribute and/or modify this document
93 under the terms of the GNU Free Documentation License, Version 1.3 or
94 any later version published by the Free Software Foundation; with no
95 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
96 Texts. A copy of the license is included in the section entitled "GNU
97 Free Documentation License".
98
99
100
101binutils-2.27 2016-08-03 ELFEDIT(1)