ELFTC_RELOC_TYPE_STR(3)
πΈ 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: libelftc 15.0.0
- Copyright (c) 2016 The FreeBSD Foundation. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms