Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ELFTC_RELOC_TYPE_STR(3)	 BSD Library Functions Manual  ELFTC_RELOC_TYPE_STR(3)

NAME
     elftc_reloc_type_str -- return the	type name for an ELF relocation

LIBRARY
     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.

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

RETURN VALUE
     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.

BSD			       February	19, 2016			   BSD

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUE | EXAMPLES | ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=elftc_reloc_type_str&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help