[PATCH 1/3] Add native ELF and LTO support in collect2
Diego Novillo
dnovillo@google.com
Tue Nov 2 11:06:00 GMT 2010
On 10-10-16 11:09 , Andi Kleen wrote:
>
> * collect2.c: Add ifdefs for OBJECT_FORMAT_ELF.
> (main): Move use_plugin to top level.
> (scan_prog_file): Move switch statement to ..
> (handle_pass): Separate function here.
> (LTO_SYMTAB_NAME, scan_lto_symtab, scan_elf_symtab, is_ar,
> scan_prog_file): Add.
> * config.in: Regenerate.
> * config/i386/linux.h (OBJECT_FORMAT_ELF): Define.
> * configure: Regenerate.
> * configure.ac: Check for libelf.h and gelf.h. Adjust
> libelf test.
Hm, why not just force the use of a linker that has plugin support?
Diego.
More information about the Gcc-patches
mailing list