This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/3] Add native ELF and LTO support in collect2
On 11/10/2010 17:28, Andi Kleen wrote:
> Dave Korn <dave.korn.cygwin@gmail.com> writes:
>> But I think you're missing my point: collect2 "does" all those other things
>> *by means of* looking at the symbol table, doesn't it? Which is what
>> the
>
> Actually no: it has some more knowledge, although it's mostly symbol
> table today.
I think the only other thing apart from symbols is the dynamic library
dependencies that it gathers using ldd on some systems.
> At least some of the changes I plan to implement -- and why
> I wrote all this in the first place -- will require looking at all
> sections.
Ah well, that's new and certainly doesn't fit with the existing plugin api,
otherwise it could have been a good idea.
What (out of curiosity and to help with long-term planning) are the new
changes you're looking to implement?
>> Ah, that's actually a problem that would require libltdl, and even then
>> might not be possible on all host platforms. Which is a shame, because I'd
>> really like it if we could control the proliferation of target object-format
>> dependent code and have it somehow centralized or abstracted, and the
>> linker
>
> If you're worrying about COFF: collect2 already has native COFF support.
Yes, I was thinking how nice it would be to remove that!
cheers,
DaveK