Building collect2 for C?

Zack Weinberg zack@codesourcery.com
Tue Mar 16 21:18:00 GMT 2004


Mike Stump <mrs@apple.com> writes:

> On Tuesday, March 16, 2004, at 09:17 AM, Zack Weinberg wrote:
>> Oh, also, Mike Stump was working on patches to avoid running collect2
>> when it wasn't necessary.  Whatever happened to those?
>
> The right fix is to fold the entirety of collect2 into, gosh, where
> was it supposed to go, oh, yeah, gcc as I recall.  This eliminates
> overhead of the fork and exec and allows for a more natural and normal
> coding style and a way to structure the code that is just plain nicer.
> The grossness of collect2 as it exists now and all the different md
> hacks in it make this type of job a wee bit harder.  It was going to
> be a bit more work that I was hoping for, with fairly beefy testing
> requirements to ensure that no bugs are introduced in the process.
>
> Might be easier to start with one platform with simple requirements
> and move it and remove any md code for that target from the existing
> collect2, then other ports can come along as the port maintainers are
> ready, that spreads testing out to the right people.

I'm tied down with other stuff right now, but now would be a wonderful
time to start such a project.

zw



More information about the Gcc mailing list