[PATCH] Provide string description of definition, visibility and resolution in LTO plug-in.

Martin Liška mliska@suse.cz
Tue Feb 26 14:41:00 GMT 2019


Hi.

I would like to enhance get_symbols function to report string
representation of definition, visibility and resolution.
It's easier for users to read it.

Patch survives tests on x86_64-linux-gnu.

ld/ChangeLog:

2019-02-26  Martin Liska  <mliska@suse.cz>

	* plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
	lto_visibility_str and use then to inform about plugin-symbols.
	* testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
---
 ld/plugin.c                        | 37 ++++++++++++++++++++++++++++--
 ld/testsuite/ld-plugin/plugin-12.d |  8 +++----
 2 files changed, 39 insertions(+), 6 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Provide-string-description-of-definition-visibility-.patch
Type: text/x-patch
Size: 2219 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190226/19664d85/attachment.bin>


More information about the Binutils mailing list