Update plugin_maybe_claim
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 7 Feb 2015 19:01:22 +0000 (11:01 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 7 Feb 2015 19:01:22 +0000 (11:01 -0800)
commit35a1e5f3055fc28f129e4d5d0a993218d8af1baf
tree620a7a1e2a37218fe5b68536d8586822f0b5940c
parent1952c5cd7d3d24b9647b396731bc4808a2d63d9c
Update plugin_maybe_claim

This patch removes the argument of pointer to struct ld_plugin_input_file.
This is the first step to extract a plugin_object_p out of
plugin_maybe_claim for BFD.

* plugin.c: Include "libbfd.h".
(plugin_strdup): New.
(plugin_maybe_claim): Remove the argument of pointer to struct
ld_plugin_input_file.  Open and handle input entry.
* plugin.h (plugin_maybe_claim): Updated.
* ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
without passing a pointer to struct ld_plugin_input_file.
* ldmain.c: Don't include "libbfd.h".
(add_archive_element): Call plugin_maybe_claim directly without
passing a pointer to struct ld_plugin_input_file.
ld/ChangeLog
ld/ldfile.c
ld/ldmain.c
ld/plugin.c
ld/plugin.h
This page took 0.024416 seconds and 4 git commands to generate.