aboutsummaryrefslogtreecommitdiff
path: root/bfd/sparclinux.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-11 15:22:10 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-11 15:30:03 -0800
commit58002c640995105459cd2c84343a430679e57eac (patch)
treed87e0f63d152b7f2d4328decda5573681adb367f /bfd/sparclinux.c
parent88b9e2eb547b002431ae7e4b7799f1a06241da3c (diff)
downloadgdb-users/hjl/pr17878.zip
gdb-users/hjl/pr17878.tar.gz
gdb-users/hjl/pr17878.tar.bz2
Support -plugin-opt=disable-outputusers/hjl/pr17878
LLVM plugin uses --plugin-opt=disable-output to disable output. all_symbols_read_hook() calls exit() to disable output when --plugin-opt=disable-output is passed to LLVM plugin. This patch registers plugin_cleanup() with atexit(), which removes output file if --plugin-opt=disable-output is used. PR ld/17878 * configure.ac: Check if atexit exists. * config.in: Regenerated. * configure: Likewise. * plugin.c (plugin_t): Add disable_output. (plugin_opt_plugin_arg): Set disable_output for disable-output. (plugin_cleanup): New. (plugin_load_plugins): Register plugin_cleanup() with atexit().
Diffstat (limited to 'bfd/sparclinux.c')
0 files changed, 0 insertions, 0 deletions