Re: LTO and libelf (and FreeBSD)

2010-05-20 Thread Kai Wang
On Sun, May 02, 2010 at 11:38:39PM +0200, Gerald Pfeifer wrote: > As http://gcc.gnu.org/ml/gcc-testresults/2010-05/msg00120.html shows, > *-unknown-freebsd* exhibits tons of failures around LTO. > > I dug a bit deeper, and even the most trivial test program > int main() { } > fails with > lto1

Re: LTO and libelf (and FreeBSD)

2010-05-23 Thread Kai Wang
On Sun, May 23, 2010 at 12:48:20AM +0200, Gerald Pfeifer wrote: > On Thu, 20 May 2010, Kai Wang wrote: > > The elf_getbase() API in FreeBSD libelf can only be called using an > > archive member ELF descriptor. It will return -1 (indicates an error) > > when called with a