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               [--input-abiversion=version]
13               --output-mach=machine
14               --output-type=type
15               --output-osabi=osabi
16               --output-abiversion=version
17               --enable-x86-feature=feature
18               --disable-x86-feature=feature
19               [-v|--version]
20               [-h|--help]
21               elffile...
22

DESCRIPTION

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

OPTIONS

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

SEE ALSO

115       readelf(1), and the Info entries for binutils.
116
118       Copyright (c) 1991-2022 Free Software Foundation, Inc.
119
120       Permission is granted to copy, distribute and/or modify this document
121       under the terms of the GNU Free Documentation License, Version 1.3 or
122       any later version published by the Free Software Foundation; with no
123       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
124       Texts.  A copy of the license is included in the section entitled "GNU
125       Free Documentation License".
126
127
128
129binutils-2.38                     2022-07-20                        ELFEDIT(1)
Impressum