binutils-gdb/libctf
Nick Alcock 6dd2819ffc libctf, link: add the ability to filter out variables from the link
The CTF variables section (containing variables that have no
corresponding symtab entries) can cause the string table to get very
voluminous if the names of variables are long.  Some callers want to
filter out particular variables they know they won't need.

So add a "variable filter" callback that does that: it's passed the name
of the variable and a corresponding ctf_file_t / ctf_id_t pair, and
should return 1 to filter it out.

ld doesn't use this machinery yet, but we could easily add it later if
desired.  (But see later for a commit that turns off CTF variable-
section linking in ld entirely by default.)

include/
	* ctf-api.h (ctf_link_variable_filter_t): New.
	(ctf_link_set_variable_filter): Likewise.

libctf/
	* libctf.ver (ctf_link_set_variable_filter): Add.
	* ctf-impl.h (ctf_file_t) <ctf_link_variable_filter>: New.
	<ctf_link_variable_filter_arg>: Likewise.
	* ctf-create.c (ctf_serialize): Adjust.
	* ctf-link.c (ctf_link_set_variable_filter): New, set it.
	(ctf_link_one_variable): Call it if set.
2020-07-22 18:02:18 +01:00
..
.gitignore libctf: restructure error handling to reduce relocations 2020-07-22 17:57:20 +01:00
aclocal.m4 libctf: support platforms with separate libintl 2020-06-26 15:56:39 +01:00
ChangeLog libctf, link: add the ability to filter out variables from the link 2020-07-22 18:02:18 +01:00
config.h.in libctf: check for vasprintf 2020-07-22 18:02:18 +01:00
configure libctf: check for vasprintf 2020-07-22 18:02:18 +01:00
configure.ac libctf: check for vasprintf 2020-07-22 18:02:18 +01:00
ctf-archive.c libctf, archive: fix bad error message 2020-07-22 18:02:18 +01:00
ctf-create.c libctf, link: add the ability to filter out variables from the link 2020-07-22 18:02:18 +01:00
ctf-decl.c libctf, decl: avoid leaks of the formatted string on error 2020-07-22 18:02:17 +01:00
ctf-decls.h libctf: pass the thunk down properly when wrapping qsort_r 2020-07-22 17:57:52 +01:00
ctf-dump.c libctf, dump: fix slice dumping 2020-07-22 18:02:18 +01:00
ctf-endian.h
ctf-error.c libctf: drop error-prone ctf_strerror 2020-07-22 18:02:18 +01:00
ctf-hash.c libctf: rename the type_mapping_key to type_key 2020-07-22 18:02:18 +01:00
ctf-impl.h libctf, link: add the ability to filter out variables from the link 2020-07-22 18:02:18 +01:00
ctf-inlines.h libctf, ld, binutils: add textual error/warning reporting for libctf 2020-07-22 18:02:17 +01:00
ctf-labels.c
ctf-link.c libctf, link: add the ability to filter out variables from the link 2020-07-22 18:02:18 +01:00
ctf-lookup.c libctf, next: introduce new class of easier-to-use iterators 2020-07-22 17:57:50 +01:00
ctf-open-bfd.c libctf, open: fix opening CTF in binaries with no symtab 2020-07-22 18:02:18 +01:00
ctf-open.c libctf, link: redo cu-mapping handling 2020-07-22 18:02:18 +01:00
ctf-qsort_r.c
ctf-string.c
ctf-subr.c libctf: drop error-prone ctf_strerror 2020-07-22 18:02:18 +01:00
ctf-types.c libctf, types: enhance ctf_type_aname to print function arg types 2020-07-22 18:02:17 +01:00
ctf-util.c libctf, next, hash: add dynhash and dynset _next iteration 2020-07-22 17:57:51 +01:00
elf.h
libctf.ver libctf, link: add the ability to filter out variables from the link 2020-07-22 18:02:18 +01:00
Makefile.am libctf, link: add lazy linking: clean up input members: err/warn cleanup 2020-07-22 18:02:18 +01:00
Makefile.in libctf, link: add lazy linking: clean up input members: err/warn cleanup 2020-07-22 18:02:18 +01:00
mkerrors.sed libctf: restructure error handling to reduce relocations 2020-07-22 17:57:20 +01:00
swap.h libctf, elfcpp, gold: do not assume that <byteswap.h> contains bswap_* 2020-06-26 15:56:39 +01:00