OBJRES(1)
π OBJRES β the objres manual page, bestie edition β¨
okay so like, welcome to the objres page from the General Commands Manual bestie, you're gonna be so obsessed π«Ά
πΈ NAME πΈ
objres β compile binary data into an object file. literally that's it, that's the vibe π
β¨ SYNOPSIS β¨
objres [OPTIONS] [SYMBOL=]FILE ...
π¦ DESCRIPTION π¦
okay so here's the tea β objres takes one or more files full of binary data as input, and it creates an ELF object file that exports the contents of each input file as a read-only compile-time object. slay.
and it doesn't stop there, no ma'am π
objres ALSO produces a C header file that declares each of the exported objects as an array of unsigned char. iconic behaviour fr fr.
each input file may be preceded by the symbol name to assign to that binary object. if no symbol name is provided, objres will derive one from the filename. no cap, it just figures it out itself π§
π OPTIONS π
-o,--output=FILENAMEβ sets the name of the target object file to FILENAME. if you omit this option, the default filename gets derived from the name of the exported symbol (or the first symbol, if there's more than one). lowkey convenient π-h,--header=FILENAMEβ sets the name of the header file to FILENAME. skip this one and the default filename will be chosen to match the name of the object file. matching set, we love to see it β¨-m,--machine={32|64}β sets the target object file to be either a 32-bit ELF object or a 64-bit ELF object. the default type will be the same as theobjresbinary's type. so it matches its own vibe by default πͺ-R,--reference=OBJFILEβ examines the object file OBJFILE, and copies the fields from its ELF header to the file created. by defaultobjreswill only target x86 platforms; this option is the one that lets it create object files for other platforms. main character energy, going international π-r,--read-onlyβ places the binary objects in read-only memory. the objects will be declared as arrays ofconst unsigned char. protect the content, periodt π--helpβ display help and exit. we all need a little help sometimes π--versionβ display version information and exit. who are you, truly π
π COPYRIGHT π
copyright Β© 2011 Brian Raiter <breadbox@muppetlabs.com>. π«Ά
license GPLv2+: GNU GPL version 2 or later. this is free software: you are free to change and redistribute it. there is NO WARRANTY, to the extent permitted by law. like, none at all bestie, don't come for them π
okay that's the whole page, you ate that π go compile something cute π
and that's a wrap on the objres page from ELF kickers 3.0, dated May 2011 β manual page OBJRES(1) π bye bestie, ily, go export some binary objects πβ
π¦ where this page comes from
- arch rolling: elfkickers 3.2-6 Β· GPL-2.0-or-later
- debian trixie: elfkickers 0+git20240221+ds-5
- nixos 26.05: elfkickers 3.2
- nixpkgs unstable: elfkickers 3.2
- ubuntu resolute: elfkickers 3.2+ds-1
- ubuntu stonking: elfkickers 3.2+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms