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

NAME

6       elfedit - update ELF header and program property 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               --enable-x86-feature=feature
16               --disable-x86-feature=feature
17               [-v|--version]
18               [-h|--help]
19               elffile...
20

DESCRIPTION

22       elfedit updates the ELF header and program property of ELF files which
23       have the matching ELF machine and file types.  The options control how
24       and which fields in the ELF header and program property should be
25       updated.
26
27       elffile... are the ELF files to be updated.  32-bit and 64-bit ELF
28       files are supported, as are archives containing ELF files.
29

OPTIONS

31       The long and short forms of options, shown here as alternatives, are
32       equivalent. At least one of the --output-mach, --output-type,
33       --output-osabi, --enable-x86-feature and --disable-x86-feature options
34       must be given.
35
36       --input-mach=machine
37           Set the matching input ELF machine type to machine.  If
38           --input-mach isn't specified, it will match any ELF machine types.
39
40           The supported ELF machine types are, i386, IAMCU, L1OM, K1OM and
41           x86-64.
42
43       --output-mach=machine
44           Change the ELF machine type in the ELF header to machine.  The
45           supported ELF machine types are the same as --input-mach.
46
47       --input-type=type
48           Set the matching input ELF file type to type.  If --input-type
49           isn't specified, it will match any ELF file types.
50
51           The supported ELF file types are, rel, exec and dyn.
52
53       --output-type=type
54           Change the ELF file type in the ELF header to type.  The supported
55           ELF types are the same as --input-type.
56
57       --input-osabi=osabi
58           Set the matching input ELF file OSABI to osabi.  If --input-osabi
59           isn't specified, it will match any ELF OSABIs.
60
61           The supported ELF OSABIs are, none, HPUX, NetBSD, GNU, Linux (alias
62           for GNU), Solaris, AIX, Irix, FreeBSD, TRU64, Modesto, OpenBSD,
63           OpenVMS, NSK, AROS and FenixOS.
64
65       --output-osabi=osabi
66           Change the ELF OSABI in the ELF header to osabi.  The supported ELF
67           OSABI are the same as --input-osabi.
68
69       --enable-x86-feature=feature
70           Set the feature bit in program property in exec or dyn ELF files
71           with machine types of i386 or x86-64.  The supported features are,
72           ibt and shstk.
73
74       --disable-x86-feature=feature
75           Clear the feature bit in program property in exec or dyn ELF files
76           with machine types of i386 or x86-64.  The supported features are
77           the same as --enable-x86-feature.
78
79           Note: --enable-x86-feature and --disable-x86-feature are available
80           only on hosts with mmap support.
81
82       -v
83       --version
84           Display the version number of elfedit.
85
86       -h
87       --help
88           Display the command-line options understood by elfedit.
89
90       @file
91           Read command-line options from file.  The options read are inserted
92           in place of the original @file option.  If file does not exist, or
93           cannot be read, then the option will be treated literally, and not
94           removed.
95
96           Options in file are separated by whitespace.  A whitespace
97           character may be included in an option by surrounding the entire
98           option in either single or double quotes.  Any character (including
99           a backslash) may be included by prefixing the character to be
100           included with a backslash.  The file may itself contain additional
101           @file options; any such options will be processed recursively.
102

SEE ALSO

104       readelf(1), and the Info entries for binutils.
105
107       Copyright (c) 1991-2020 Free Software Foundation, Inc.
108
109       Permission is granted to copy, distribute and/or modify this document
110       under the terms of the GNU Free Documentation License, Version 1.3 or
111       any later version published by the Free Software Foundation; with no
112       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
113       Texts.  A copy of the license is included in the section entitled "GNU
114       Free Documentation License".
115
116
117
118binutils-2.34                     2020-02-27                        ELFEDIT(1)
Impressum