BRANDELF(1)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… brandelf(1) β€” General Commands Manual πŸ’…

Okay bestie, welcome to the brandelf(1) manpage. This is literally the glow-up your ELF binaries didn't know they needed. Let's get into it. πŸŽ€

✨ NAME ✨

brandelf β€” mark an ELF binary for a specific ABI. That's the whole thing. It's giving tiny tool, huge main character energy. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

brandelf [-lv] [-f ELF_ABI_number] [-t string] file ...

🌈 DESCRIPTION 🌈

Okay so the brandelf utility marks an ELF binary to be run under a certain ABI for FreeBSD. That's the vibe. Now the options, because they all matter and we're not skipping any:

  • -f ELF_ABI_number β€” Forces branding with the supplied ELF ABI number. Incompatible with the -t option. These values are assigned by SCO/USL. Don't mix them up, bestie. 🚫
  • -l β€” Writes the list of all known ELF types to the standard error. Lowkey useful for a vibe check. πŸ‘€
  • -v β€” Turns on verbose output. Because sometimes you need the whole story. πŸ—£οΈ
  • -t string β€” Brands the given ELF binaries to be of the string ABI type. Currently supported ABIs are β€œFreeBSD”, β€œLinux”, and β€œSVR4”. Those are your only choices, no cap. πŸ’…
  • file β€” If -t string is given it will brand file to be of type string. Otherwise it will simply display the branding of file. So it's either a makeover or a mirror. πŸͺž

πŸŽ€ EXIT STATUS πŸŽ€

Exit status is 0 on success, and 1 if the command fails. It fails if a file does not exist, is too short, fails to brand properly, or the brand requested is not one of the known types and the -f option is not set. So basically, if anything's off, you get a 1. No in-between. πŸ’€

πŸ”₯ EXAMPLES πŸ”₯

Here's a typical usage moment, bestie. The following is an example of a typical usage of the brandelf command:

brandelf file
brandelf -t Linux file

First one shows you the brand, second one slaps the Linux brand on it. Simple. Iconic. Periodt. πŸ”₯

🌸 SEE ALSO 🌸

The Santa Cruz Operation, Inc., System V Application Binary Interface, http://www.sco.com/developers/devspecs/, April 29, 1998 (DRAFT). Iykyk. πŸ“š

πŸ¦‹ HISTORY πŸ¦‹

The brandelf manual page first appeared in FreeBSD 2.2. Been serving looks since the 90s. πŸ‘‘

πŸ’– AUTHORS πŸ’–

This manual page was written by John-Mark Gurney <jmg@FreeBSD.org>. Slay. 🫢


πŸ’… This page is from Debian, dated March 25, 2014. Stay slaying, bestie! πŸ’–

πŸ“¦ where this page comes from