elftc_reloc_type_str(3)

elftc_reloc_type_str3

Return the type name for an elf relocation

Usage

#include <libelftc.h>

const char *

elftc_reloc_type_str(unsigned int mach, unsigned int type);

Library

library “libelftc”

Overview

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

Argument mach specifies the machine (architecture) type. Argument type specifies the relocation value.

Return values

Function elftc_program_version() returns a pointer to a string constant, or to an internal character buffer if the relocation type is unknown.

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.

Releases

24 releases since FreeBSD 11.1-RELEASE; the text changed 2 times.

  1. 11.1–12.0
  2. 12.1–15.1
  3. 16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.