libctf, link: add CTF_LINK_OMIT_VARIABLES_SECTION
This flag (not used anywhere yet) causes the variables section to be omitted from the output CTF dict. include/ * ctf-api.h (CTF_LINK_OMIT_VARIABLES_SECTION): New. libctf/ * ctf-link.c (ctf_link_one_input_archive_member): Check CTF_LINK_OMIT_VARIABLES_SECTION.
This commit is contained in:
parent
0f0c11f7fc
commit
e3e8411bec
4 changed files with 14 additions and 1 deletions
|
@ -685,7 +685,8 @@ ctf_link_one_input_archive_member (ctf_file_t *in_fp, const char *name, void *ar
|
|||
arg->in_fp = in_fp;
|
||||
|
||||
if ((err = ctf_type_iter_all (in_fp, ctf_link_one_type, arg)) > -1)
|
||||
err = ctf_variable_iter (in_fp, ctf_link_one_variable, arg);
|
||||
if (!(in_fp->ctf_link_flags & CTF_LINK_OMIT_VARIABLES_SECTION))
|
||||
err = ctf_variable_iter (in_fp, ctf_link_one_variable, arg);
|
||||
|
||||
arg->in_input_cu_file = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue