summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-03-19 16:56:27 +0100
committerMartin Liska <mliska@suse.cz>2020-03-19 16:56:27 +0100
commitc8429c2aba80f845939ffa6b2cfe8a0be1b50078 (patch)
tree24fdc75d0c796217da6680c0dd3e9abddb1238ca /include
parentf5389e17e4b8cfd4877082b46d31d1db3341a0aa (diff)
API extension for binutils (type of symbols).
* lto-section-in.c: Add ext_symtab. * lto-streamer-out.c (write_symbol_extension_info): New. (produce_symtab_extension): New. (produce_asm_for_decls): Stream also produce_symtab_extension. * lto-streamer.h (enum lto_section_type): New section. * lto-symtab.h (enum gcc_plugin_symbol_type): New. (enum gcc_plugin_symbol_section_kind): Likewise. * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ... (LTO_SYMTAB_PREFIX): ... this. (LTO_SECTION_PREFIX_LEN): Rename to ... (LTO_SYMTAB_PREFIX_LEN): ... this. (LTO_SYMTAB_EXT_PREFIX): New. (LTO_SYMTAB_EXT_PREFIX_LEN): New. (LTO_LTO_PREFIX): New. (LTO_LTO_PREFIX_LEN): New. (parse_table_entry): Fill up unused to zero. (parse_table_entry_extension): New. (parse_symtab_extension): New. (finish_conflict_resolution): Change type for resolution. (process_symtab): Use new macro name. (process_symtab_extension): New. (claim_file_handler): Parse also process_symtab_extension. (onload): Call new add_symbols_v2.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/lto-symtab.h13
2 files changed, 18 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 8c79e73f043..c44fb79feeb 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,10 @@
2020-03-19 Martin Liska <mliska@suse.cz>
+ * lto-symtab.h (enum gcc_plugin_symbol_type): New.
+ (enum gcc_plugin_symbol_section_kind): Likewise.
+
+2020-03-19 Martin Liska <mliska@suse.cz>
+
* plugin-api.h (struct ld_plugin_symbol): Split
int def into 4 char fields.
(enum ld_plugin_symbol_type): New.
diff --git a/include/lto-symtab.h b/include/lto-symtab.h
index 0ce0de10121..ef2e35f19c3 100644
--- a/include/lto-symtab.h
+++ b/include/lto-symtab.h
@@ -38,4 +38,17 @@ enum gcc_plugin_symbol_visibility
GCCPV_HIDDEN
};
+enum gcc_plugin_symbol_type
+{
+ GCCST_UNKNOWN,
+ GCCST_FUNCTION,
+ GCCST_VARIABLE,
+};
+
+enum gcc_plugin_symbol_section_kind
+{
+ GCCSSK_DEFAULT,
+ GCCSSK_BSS
+};
+
#endif /* GCC_LTO_SYMTAB_H */