mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* plugin.c (plugin_load_plugins): Warning fix.
This commit is contained in:
parent
eac3aa9e9a
commit
a8f9d13eda
@ -1,3 +1,7 @@
|
||||
2012-10-22 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* plugin.c (plugin_load_plugins): Warning fix.
|
||||
|
||||
2012-10-18 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR binutils/14067
|
||||
|
@ -800,9 +800,11 @@ plugin_load_plugins (void)
|
||||
while (curplug)
|
||||
{
|
||||
enum ld_plugin_status rv;
|
||||
ld_plugin_onload onloadfn = dlsym (curplug->dlhandle, "onload");
|
||||
ld_plugin_onload onloadfn;
|
||||
|
||||
onloadfn = (ld_plugin_onload) dlsym (curplug->dlhandle, "onload");
|
||||
if (!onloadfn)
|
||||
onloadfn = dlsym (curplug->dlhandle, "_onload");
|
||||
onloadfn = (ld_plugin_onload) dlsym (curplug->dlhandle, "_onload");
|
||||
if (!onloadfn)
|
||||
return set_plugin_error (curplug->name);
|
||||
set_tv_plugin_args (curplug, &my_tv[tv_header_size]);
|
||||
|
Loading…
Reference in New Issue
Block a user