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 the objres binary'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 default objres will 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 of const 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 © 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