ctfconvert(1)

ctfconvert1

Convert debug data to compact c type format data

Usage

ctfconvert [-gis] -L labelenv -l label [-o outfile] object_file

Overview

The ctfconvert utility converts debug information from a binary file to CTF (Compact C Type Format) data and replaces the debug section of that file with a CTF section called SUNW_ctf. This new section is added to the input file, unless the -o option is present. You can also opt to keep the original debugging section with the -g option.

The following options are available:

-g

Don't delete the original debugging section.

-i

Ignore object files built from other languages than C.

-L labelenv

Instructs ctfconvert to read the label from the labelenv environment variable.

-l label

Sets the label as label.

-o outfile

Write the output to file in outfile.

-s

Use the .dynsym ELF section instead of the .symtab ELF section.

Exit status

The ctfconvert utility exits 0 on success, and >0 if an error occurs.

Releases

37 releases since FreeBSD 8.2-RELEASE; the text changed 26 times.

  1. 8.2
  2. 8.3
  3. 8.4
  4. 9.0
  5. 9.1
  6. 9.2
  7. 9.3
  8. 10.0
  9. 10.1
  10. 10.2
  11. 10.3
  12. 10.4
  13. 11.0
  14. 11.1
  15. 11.2
  16. 11.3
  17. 11.4
  18. 12.0
  19. 12.1
  20. 12.2
  21. 12.3
  22. 12.4
  23. 13.0–13.1
  24. 13.2
  25. 13.3–14.3
  26. 14.4–15.1
  27. 16.0

History

The ctfconvert utility first appeared in FreeBSD 7.0.

Authors

The CTF utilities came from OpenSolaris.

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