ELFEDIT(1)
π ELFEDIT(1) β the girl who edits your ELF headers π
okay so welcome to elfedit(1), bestie β¨ this one lives in the GNU Development Tools family and honestly? she's iconic.
β¨ NAME β¨
elfedit β update ELF header and program property of ELF files π¦
like. she goes in and edits the ELF header. and the program property. that's the whole job. slay.
πΈ SYNOPSIS πΈ
elfedit [--input-mach=machine]
[--input-type=type]
[--input-osabi=osabi]
[--input-abiversion=version]
--output-mach=machine
--output-type=type
--output-osabi=osabi
--output-abiversion=version
--enable-x86-feature=feature
--disable-x86-feature=feature
[-v|--version]
[-h|--help]
elffile...
look at her. π so structured. so composed. not me simping over a binutils command.
π DESCRIPTION π
elfedit updates the ELF header and program property of ELF files which have the matching ELF machine and file types. so like β the vibe check has to pass first, bestie. her options control how and which fields in the ELF header and program property should be updated. π
elffile... are the ELF files to be updated. π 32-bit and 64-bit ELF files are supported, as are archives containing ELF files. yes she does both. she does archives too. versatile queen.
π OPTIONS π
okay so the long and short forms of options, shown here as alternatives, are equivalent. no cap. π₯
β οΈ at LEAST one of the--output-mach,--output-type,--output-osabi,--output-abiversion,--enable-x86-featureand--disable-x86-featureoptions must be given. like. you literally cannot just show up and do nothing. pick a lane. β
--input-mach=machineβ sets the matching input ELF machine type tomachine. if--input-machisn't specified, she'll match any ELF machine types. π§
the supported ELF machine types are: i386, IAMCU, L1OM, K1OM and x86-64. β¨
--output-mach=machineβ changes the ELF machine type in the ELF header tomachine. the supported ELF machine types are the same as--input-mach. π--input-type=typeβ sets the matching input ELF file type totype. if--input-typeisn't specified, she'll match any ELF file types. π
the supported ELF file types are: rel, exec and dyn. β
--output-type=typeβ changes the ELF file type in the ELF header totype. the supported ELF types are the same as--input-type. π--input-osabi=osabiβ sets the matching input ELF file OSABI toosabi. if--input-osabiisn't specified, she'll match any ELF OSABIs. π«
the supported ELF OSABIs are: none, HPUX, NetBSD, GNU, Linux (alias for GNU), Solaris, AIX, Irix, FreeBSD, TRU64, Modesto, OpenBSD, OpenVMS, NSK, AROS and FenixOS. that's a lot of OSABIs and she knows every single one. main character energy fr fr. π
--output-osabi=osabiβ changes the ELF OSABI in the ELF header toosabi. the supported ELF OSABI are the same as--input-osabi. π--input-abiversion=versionβ sets the matching input ELF file ABIVERSION toversion.versionmust be between 0 and 255. π¨ if--input-abiversionisn't specified, she'll match any ELF ABIVERSIONs.--output-abiversion=versionβ changes the ELF ABIVERSION in the ELF header toversion.versionmust be between 0 and 255. π¨--enable-x86-feature=featureβ sets the feature bit in program property inexecordynELF files with machine types ofi386orx86-64. π the supported features are:ibt,shstk,lam_u48andlam_u57. π₯--disable-x86-feature=featureβ clears the feature bit in program property inexecordynELF files with machine types ofi386orx86-64. the supported features are the same as--enable-x86-feature. π
π Note:--enable-x86-featureand--disable-x86-featureare available only on hosts with mmap support. no mmap, no feature bits, sorry bestie. π
-v,--versionβ displays the version number ofelfedit. π-h,--helpβ displays the command-line options understood byelfedit. π«Ά@fileβ reads command-line options fromfile. the options read are inserted in place of the original@fileoption. iffiledoes not exist, or cannot be read, then the option will be treated literally, and not removed. π
options in file are separated by whitespace. a whitespace character may be included in an option by surrounding the entire option in either single or double quotes. π any character (including a backslash) may be included by prefixing the character to be included with a backslash. the file may itself contain additional @file options; any such options will be processed recursively. π it's giving inception. iykyk.
π¦ SEE ALSO π¦
readelf(1), and the Info entries forbinutils. π go read those too. she said so. mutuals support mutuals.
π COPYRIGHT π
Copyright (c) 1991-2026 Free Software Foundation, Inc. β¨
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. π a copy of the license is included in the section entitled "GNU Free Documentation License". π
and that's the whole page, bestie!! πβ¨ this was binutils-2.47, dated 2026-09-12, and it's ELFEDIT(1) β go update some ELF headers and eat, queen πππ
π¦ where this page comes from
- ubuntu stonking: binutils-bpf 2.47-6ubuntu1+2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms