This is the mail archive of the
mailing list for the binutils project.
Re: ld using .. in search paths
Bryan Ischo <firstname.lastname@example.org> 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.