New plugin interface to get list of symbols wrapped with --wrap option.
authorSriraman Tallam <tmsriram@google.com>
Thu, 22 Feb 2018 21:56:46 +0000 (13:56 -0800)
committerSriraman Tallam <tmsriram@google.com>
Thu, 22 Feb 2018 21:56:46 +0000 (13:56 -0800)
commit0b65c07b97c43e8891c2e14061270878a85222c8
treea9c9e130a0045291605c400a0d086d99b1c515b0
parent0bccfb2994d307601ceba5c3a6223b7ca7cf5338
New plugin interface to get list of symbols wrapped with --wrap option.

2018-02-22  Sriraman Tallam  <tmsriram@google.com>

* 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.
gold/ChangeLog
gold/options.h
gold/plugin.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/plugin_test.c
gold/testsuite/plugin_test_wrap_symbols.sh [new file with mode: 0755]
gold/testsuite/plugin_test_wrap_symbols_1.cc [new file with mode: 0644]
gold/testsuite/plugin_test_wrap_symbols_2.cc [new file with mode: 0644]
include/plugin-api.h