ELFEDIT(1)
π¦ elfedit(1) β GNU Development Tools π¦
okay so bestie, buckle up, we're doing the elfedit page from the GNU Development Tools manual (that's the manual name, iykyk) β¨
π NAME
elfedit β updates the ELF header of ELF files. literally that's the whole gig π
πΈ SYNOPSIS
elfedit [--input-mach=machine]
[--input-type=type]
[--input-osabi=osabi]
--output-mach=machine
--output-type=type
--output-osabi=osabi
[-v|--version]
[-h|--help]
elffile...
π DESCRIPTION
so elfedit updates the ELF header of ELF files that have the matching ELF machine and file types. the options are the whole control panel β they decide how the fields in the ELF header get updated and which ones, periodt π
elffile... are the ELF files to be updated. 32-bit AND 64-bit ELF files are supported, no cap β and so are archives that contain ELF files π«Ά
β¨ OPTIONS β¨
the long and short forms of options, shown here as alternatives, are equivalent. and listen: at least one of --output-mach, --output-type and --output-osabi must be given β like, you can't just vibe in here with nothing π
--input-mach=machineβ sets the matching input ELF machine type to machine. if--input-machisn't specified, it'll match any ELF machine types, she's flexible like that πββοΈ The supported ELF machine types arei386,IAMCU,L1OM,K1OMandx86-64.--output-mach=machineβ changes the ELF machine type in the ELF header to machine. the supported ELF machine types are the same as--input-mach. glow-up time π₯--input-type=typeβ sets the matching input ELF file type to type. if--input-typeisn't specified, it'll match any ELF file types. The supported ELF file types arerel,execanddyn.--output-type=typeβ changes the ELF file type in the ELF header to type. the supported ELF types are the same as--input-typeπ«--input-osabi=osabiβ sets the matching input ELF file OSABI to osabi. if--input-osabiisn't specified, it'll match any ELF OSABIs. The supported ELF OSABIs arenone,HPUX,NetBSD,GNU,Linux(alias forGNU),Solaris,AIX,Irix,FreeBSD,TRU64,Modesto,OpenBSD,OpenVMS,NSK,AROSandFenixOS. that's a whole roster, she contains multitudes π--output-osabi=osabiβ changes the ELF OSABI in the ELF header to osabi. the supported ELF OSABI are the same as--input-osabi. slay π-v,--versionβ displays the version number ofelfedit. tiny flex, we love to see it β-h,--helpβ displays the command line options understood byelfedit. your little cheat sheet fr fr π@fileβ reads command-line options from file. the options read get inserted in place of the original@fileoption. if file doesn't exist, or can't be read, then the option is treated literally, and not removed. no silent vanishing acts here π 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. and plot twist: the file may itself contain additional@fileoptions β any such options will be processed recursively π (it's giving inception, honestly)
π SEE ALSO
readelf(1), and the Info entries for binutils. go read those too, bestie, it's giving homework but the fun kind π
π COPYRIGHT
Copyright (c) 1991-2018 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".
aaaand that's the whole page!! π§ this one's from binutils-2.30, dated 2018-01-27 β mwah, drink some water, and go edit those ELF headers responsibly πβ¨
π¦ where this page comes from
- nixpkgs unstable: djgpp 12.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms