forked from Imagelibrary/binutils-gdb
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:
@@ -1,3 +1,7 @@
|
|||||||
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||||||
|
|
||||||
|
* ctf-api.h (CTF_LINK_OMIT_VARIABLES_SECTION): New.
|
||||||
|
|
||||||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||||||
|
|
||||||
* ctf-api.h (CTF_LINK_SHARE_DUPLICATED): No longer unimplemented.
|
* ctf-api.h (CTF_LINK_SHARE_DUPLICATED): No longer unimplemented.
|
||||||
|
|||||||
@@ -90,6 +90,9 @@ typedef struct ctf_link_sym
|
|||||||
emitted into them. */
|
emitted into them. */
|
||||||
#define CTF_LINK_EMPTY_CU_MAPPINGS 0x4
|
#define CTF_LINK_EMPTY_CU_MAPPINGS 0x4
|
||||||
|
|
||||||
|
/* Omit the content of the variables section. */
|
||||||
|
#define CTF_LINK_OMIT_VARIABLES_SECTION 0x8
|
||||||
|
|
||||||
/* Symbolic names for CTF sections. */
|
/* Symbolic names for CTF sections. */
|
||||||
|
|
||||||
typedef enum ctf_sect_names
|
typedef enum ctf_sect_names
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||||||
|
|
||||||
|
* ctf-link.c (ctf_link_one_input_archive_member): Check
|
||||||
|
CTF_LINK_OMIT_VARIABLES_SECTION.
|
||||||
|
|
||||||
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
|
||||||
|
|
||||||
* ctf-impl.h (ctf_type_id_key): New, the key in the
|
* ctf-impl.h (ctf_type_id_key): New, the key in the
|
||||||
|
|||||||
@@ -685,6 +685,7 @@ ctf_link_one_input_archive_member (ctf_file_t *in_fp, const char *name, void *ar
|
|||||||
arg->in_fp = in_fp;
|
arg->in_fp = in_fp;
|
||||||
|
|
||||||
if ((err = ctf_type_iter_all (in_fp, ctf_link_one_type, arg)) > -1)
|
if ((err = ctf_type_iter_all (in_fp, ctf_link_one_type, arg)) > -1)
|
||||||
|
if (!(in_fp->ctf_link_flags & CTF_LINK_OMIT_VARIABLES_SECTION))
|
||||||
err = ctf_variable_iter (in_fp, ctf_link_one_variable, arg);
|
err = ctf_variable_iter (in_fp, ctf_link_one_variable, arg);
|
||||||
|
|
||||||
arg->in_input_cu_file = 0;
|
arg->in_input_cu_file = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user