1ELFEDIT(1)                   GNU Development Tools                  ELFEDIT(1)
2
3
4

NAME

6       elfedit - Update the ELF header of ELF files.
7

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

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, K1OM 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 osabi.  If --input-osabi
54           isn't specified, it will match any ELF OSABIs.
55
56           The supported ELF OSABIs are, none, HPUX, NetBSD, GNU, Linux (alias
57           for GNU), Solaris, AIX, Irix, FreeBSD, TRU64, Modesto, OpenBSD,
58           OpenVMS, NSK, AROS and FenixOS.
59
60       --output-osabi=osabi
61           Change the ELF OSABI in the ELF header to osabi.  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

SEE ALSO

86       readelf(1), and the Info entries for binutils.
87
89       Copyright (c) 1991-2013 Free Software Foundation, Inc.
90
91       Permission is granted to copy, distribute and/or modify this document
92       under the terms of the GNU Free Documentation License, Version 1.3 or
93       any later version published by the Free Software Foundation; with no
94       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
95       Texts.  A copy of the license is included in the section entitled "GNU
96       Free Documentation License".
97
98
99
100binutils-2.24                     2019-02-02                        ELFEDIT(1)
Impressum