d82184d782
ld/ PR ld/14904 * ldmain.c (main): Don't check plugin_load_plugins return. * lexsup.c (parse_args): Don't check plugin_opt_plugin return. * plugin.c (dlerror): New. Defined if HAVE_DLFCN_H isn't defined. (plugin_opt_plugin): Change return type to void. Stop on dlopen error and report error with dlerror (). (plugin_load_plugins): Change return type to void. Stop on dlsym error and report error with dlerror (). Don't use set_plugin_error. (plugin_call_cleanup): Issue an error for each plugin. * plugin.h (plugin_opt_plugin): Change return type to void. (plugin_load_plugins): Likewise. ld/testsuite/ PR ld/14904 * ld-plugin/plugin-2.d: Update expected error message. * ld-plugin/plugin-4.d: Likewise.
25 lines
829 B
Makefile
25 lines
829 B
Makefile
Hello from testplugin.
|
|
.*: LDPT_MESSAGE func@0x.*
|
|
.*: LDPT_API_VERSION value 0x1 \(1\)
|
|
.*: LDPT_GNU_LD_VERSION value 0x.*
|
|
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
|
|
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
|
|
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
|
|
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
|
|
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
|
|
.*: LDPT_ADD_SYMBOLS func@0x.*
|
|
.*: LDPT_GET_INPUT_FILE func@0x.*
|
|
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
|
|
.*: LDPT_GET_SYMBOLS func@0x.*
|
|
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
|
|
.*: LDPT_ADD_INPUT_FILE func@0x.*
|
|
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
|
|
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
|
|
.*: LDPT_OPTION 'failcleanup'
|
|
.*: LDPT_OPTION 'registercleanup'
|
|
.*: LDPT_NULL value 0x0 \(0\)
|
|
#...
|
|
hook called: cleanup.
|
|
.*ld.*:.*ldtestplug.*: error in plugin cleanup: 3 \(ignored\)
|
|
#...
|