1 /* LTO plugin for gold.
2 Copyright (C) 2010 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
18 /* Common definitions that the object format dependent code needs. */
19 #include "lto-plugin.h"
21 /* Callback used by gold to check if the plugin will claim FILE. Writes
22 the result in CLAIMED. */
25 claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
27 /* To be implemented; for now, simply do nothing. */
31 /* Method called first thing at onload time to perform sanity checks. */
34 onload_format_checks (struct ld_plugin_tv *tv)