Add plugin API for processing plugin-added input files

Programming / Compilers / GCC - tmsriram [138bc75d-0d04-0410-961f-82ee72b054a4] - 10 November 2017 22:10 EST

Gold plugins may wish to further process an input file added by a plugin. For example, the plugin may need to assign a unique segment for sections in a plugin-generated input file. This patch adds a plugin callback that the linker will call when reading symbols from a new input file added after the all_symbols_read event (i.e. an input file added by a plugin).

2017-11-10 Stephen Crane

- plugin-api.h: Add plugin API for processing plugin-added input files.

a0a0ccef318 Add plugin API for processing plugin-added input files.
include/ChangeLog | 5 +++++
include/plugin-api.h | 18 +++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share