elftc(3)

elftc3

Support routines used in the elftoolchain project

Usage

#include <libelftc.h>

Library

library “libelftc”

Overview

The library “libelftc” provides support routines used for developing the utilities in the Elftoolchain source tree.

This manual page serves as an overview of the functionality in this library. Additional reference information may be found in the individual manual pages for the functions listed below.

Functional Grouping

Binary Object Handling
elftc_bfd_find_target()

Locate a binary object descriptor.

elftc_bfd_target_class()

Query the ELF class for a binary object descriptor.

elftc_bfd_target_byteorder()

Query the byte order for a binary object descriptor.

elftc_bfd_target_flavor()

Query the object format for a binary object descriptor.

elftc_bfd_target_machine()

Query the target machine for a binary object descriptor.

elftc_bfd_target_osabi()

Query the target osabi for a binary object descriptor.

C++ support
elftc_demangle()

Decodes a symbol name encoded according to the encoding rules for the C++ language.

Programming conveniences
elftc_copyfile()

Copies the contents of a file to another.

elftc_set_timestamp()

Portably set the time stamps on a file.

Project Configuration
elftc_version()

Returns a project-wide identifier string that encodes the source revision of the source tree.

Releases

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

  1. 11.1–12.0
  2. 12.1
  3. 12.2–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.