The attached patch adds the first version of the lto plugin for gold. I has only the functionality needed to print the symbol table. Since the plugin support is still in development, I have included a copy of the header that contains the API. This will be removed once it is included in gold. 2008-08-27 Rafael Avila de Espindola * Makefile.am (AM_CFLAGS): New. (ltosymtab_LDADD): Remove -lelf. Add -ldl. (lib_LTLIBRARIES): New. (liblto_plugin_la_SOURCES): New. (liblto_plugin_la_LIBADD): New. * Makefile.in: Regenerate. * acinclude.m4: Don't include ../config/acx.m4 and ../config/no-executables.m4. Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and ../libtool.m4. * aclocal.m4: Regenerate. * configure: Regenerate. * configure.ac: Use AM_PROG_LIBTOOL. * lto-plugin.c: New. * lto-symtab.c: Rewrite to use the plugin. * plugin-api.h: New. Cheers, -- Rafael Avila de Espindola Google | Gordon House | Barrow Street | Dublin 4 | Ireland Registered in Dublin, Ireland | Registration Number: 368047