aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-intl.h
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2025-04-25 17:54:48 +0100
committerNick Alcock <nick.alcock@oracle.com>2025-04-25 18:07:44 +0100
commitd5012389a44029018a92b113d2253afb79493e7e (patch)
tree07662788e56e743eed59ad0932e5915b096f27a1 /libctf/ctf-intl.h
parent585f569a2dc390524607a8c12b7c4716b92abd12 (diff)
downloadbinutils-d5012389a44029018a92b113d2253afb79493e7e.zip
binutils-d5012389a44029018a92b113d2253afb79493e7e.tar.gz
binutils-d5012389a44029018a92b113d2253afb79493e7e.tar.bz2
libctf: serialize: handle CTF-versus-BTF output format checks
The internal function ctf_serialize_output_format centralizes all the checks for BTF-versus-CTF, checking to see if the type section, active suppressions, and BTF-emission mode permit BTF emission, setting ctf_serialize.cs_is_btf if we are actually BTF, and raising ECTF_NOTBTF if we are requiring BTF emission but the type section is such that we can't emit it. (There is a forcing parameter in place, as with most of these serialization functions, to allow for the caller to force CTF emission if it knows the output will be compressed or will be part of multi-member archives or something else external to the type section that BTF does not support.)
Diffstat (limited to 'libctf/ctf-intl.h')
0 files changed, 0 insertions, 0 deletions