This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Support for automatic linking via pragma


On Fri, Mar 4, 2011 at 6:31 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
> I didn't found time to work on that in more detail for PE-COFF and
> indeed is for it the dependency-tree for objects/libraries the
> challenging part.
> As for doing this on each used object base, means we have on link-time
> a changing import dependency tree, as each object actual used could
> generate new one. This easily can lead to cycles and is IMHO too
> costy.
> So my research had shown that it would be more efficent (and not that
> complex), to pre-scan those directives before the actual link-phase
> and build up the object/library link dependency-tree once.
> The gcc pragma implementation would be straight-forward and obvious.

I didn't consider this issue yet. I remember in the distant past I had
some issues with lib ordering, but in the recent past I didn't. Did
GCC avoid this issue or was I just lucky?
If it did avoid it, I assume that code can be reused.

-- 
Olaf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]