ELFTC_RELOC_TYPE_STR(3)

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

🌸 NAME 🌸

okay bestie, welcome to the ELFTC_RELOC_TYPE_STR(3) page from the Library Functions Manual β€” it's giving β€œreturn the type name for an ELF relocation” energy, and that's literally what we're doing here. πŸ’–

🫢 LIBRARY 🫢

This cutie lives in library β€œlibelftc” πŸ¦‹

✨ SYNOPSIS ✨

#include <libelftc.h>

const char *
elftc_reloc_type_str(unsigned int mach, unsigned int type);

πŸ’… DESCRIPTION πŸ’…

Function elftc_reloc_type_str() returns the name for specified relocation type. periodt. ✨

Argument mach specifies the machine (architecture) type. Argument type specifies the relocation value. Easy peasy, no cap. πŸŽ€

πŸ”₯ RETURN VALUES πŸ”₯

Okay so the return-values text in the original literally reads: function elftc_program_version() returns a pointer to a string constant, or to an internal character buffer if the relocation type is unknown. I'm keeping that name exactly as written β€” facts don't change, bestie. πŸ’…

πŸ“ EXAMPLES πŸ“

To print ARM relocation type 7, use:

#include <sys/types.h>
#include <libelftc.h>
#include <stdio.h>

(void) printf("%s\n", elftc_reloc_type_str(EM_ARM, 7));

🌈 ERRORS 🌈

Function elftc_reloc_type_str() always succeeds. It's giving flawless victory β€” no errors, no drama. 🧚


xoxo, this page came from Debian, dated February 19, 2016 β€” ELFTC_RELOC_TYPE_STR(3), and that's the whole vibe. πŸ’œ

πŸ“¦ where this page comes from