This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
re-sending as plain text. * plugin.cc (get_wrap_symbols): New plugin interface. (load): Add get_wrap_symbols to transfer vector. * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols interface. * testsuite/plugin_test_wrap_symbols.sh: New test script. * testsuite/plugin_test_wrap_symbols_1.cc: New file. * testsuite/plugin_test_wrap_symbols_2.cc: New file. * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. * testsuite/Makefile.in: Regenerate. On Tue, Nov 21, 2017 at 11:30 AM, Sriraman Tallam <tmsriram@google.com> wrote: > Hi, > > LLVM ThinLTO needs a gold plugin API to get the list of symbols that > are wrapped using the --wrap option to avoid garbage collection of some of > the associated functions like __wrap_symbol and __real_symbol. > > This patch adds an interface, get_wrap_symbols, to get the count and > the list of symbols that are wrapped. > > > * plugin.cc (get_wrap_symbols): New plugin interface. > (load): Add get_wrap_symbols to transfer vector. > * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. > * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols > interface. > * testsuite/plugin_test_wrap_symbols.sh: New test script. > * testsuite/plugin_test_wrap_symbols_1.cc: New file. > * testsuite/plugin_test_wrap_symbols_2.cc: New file. > * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. > * testsuite/Makefile.in: Regenerate. > > > Thanks > Sri
Attachment:
plugin_wrap_symbol_patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |