Mark,
Depending on which flavor of unix you are using, line 28 on lto-elf.c
seems to be causing problems.
I have been told on iirc that you must be using fc5 in order for
#include "libelf.h" to work.
I build on suse10.1 and this file does not exist. However, when I
change it to libelf/libelf.h
which I am told is (to make things convenient) slightly different, it
still does not work because the suse10.1 version does not have
elf_getshstndx.
There are apparently a couple of other comments about this.
http://gcc.gnu.org/ml/gcc/2006-07/msg00200.html
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00391.html
Who knew that there was such inter clan issues in the elves?