ld using .. in search paths

Ian Lance Taylor iant@google.com
Tue Sep 6 22:35:00 GMT 2011


Bryan Ischo <bryan@ischo.com> writes:

> Thank you for your response.  I am not sure exactly what the source of
> the /../ paths was, I had assumed that it was a built-in search path
> in ld, but maybe it was gcc passing -L arguments and it's gcc's doing.

Yes, gcc routinely passes -L arguments with "/../".  Use gcc's -v option
to see precisely how it invokes the linker.


> In any case, would it be sensible for the program generating the
> search paths to look in both the collapsed and un-collapsed forms of
> the path, to cover both bases?

No, the linker should do as it is told, no more, no less.

Ian



More information about the Binutils mailing list