[lto][patch] Add a program to read IL symbol tables
Joseph S. Myers
joseph@codesourcery.com
Wed Aug 20 15:04:00 GMT 2008
On Wed, 20 Aug 2008, Rafael Espindola wrote:
> The attached patch adds a simple program for reading the symbol table
> generated by -flto. It will evolve into the liker plugin.
>
>
> 2008-08-20 Rafael Espindola <espindola@google.com>
>
> * Makefile.def (target_modules): Add lto-plugin.
I do not understand why you think this should be a target rather than a
host module. LTO makes perfect sense for a cross compiler - the compiler,
linker and presumably plug-in run on the host, while the target may be
bare-metal with no OS and incapable of running any of them.
The plug-in should also share the same logic for finding libelf that
gcc/configure.ac has - allowing for possible different names for the
libelf header, and, should a --with-libelf option be added in future as
per <http://gcc.gnu.org/ml/gcc/2007-09/msg00117.html>, honouring that.
Thus I recommend putting that logic in a shared macro in config/, and
making sure the C sources allow for the different header names.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list