This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: What is the meaning/purpose of the â=â that sometimes appears in the SEARCH_DIR command in binutils' ldscripts?
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Kevin Mertes <kmmertes at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 7 Jul 2015 07:50:20 -0700
- Subject: Re: What is the meaning/purpose of the â=â that sometimes appears in the SEARCH_DIR command in binutils' ldscripts?
- Authentication-results: sourceware.org; auth=none
- References: <5B3029C5-9EE4-45D6-8096-5F0E2FA36DBD at gmail dot com>
> What is the meaning/purpose of the â=â that sometimes appears in the SEARCH_DIR command in binutils' ldscripts?
>
> I've searched the documentation, but cannot find an answer. I've posted the same question on StackOverflow (http://stackoverflow.com/questions/31237263/what-is-the-meaning-purpose-of-the-that-sometimes-appears-in-the-search-dir), but have not received any feedback. Hopefully, someone here can help me. Below is the full question I am asking:
>
> When I build binutils, the ldscripts folder contains several files that are used by ld to determine how to link objects for a particular platform. In the scripts I see lines like:
>
> SEARCH_DIR("/Volumes/CaseSensitive/Developer/XCF/x86_64-pc-linux-gnu/gcc47/x86_64-pc-linux-gnu/lib64");
> SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64"); SEARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
>
> What is the meaning/purpose of the "=" that appears in the SEARCH_DIR command?
The '=' causes ld to add the sysroot to the path. I suspect this is
undocumented because it's an internal implementation detail intended
only for the linker-provided script templates.
-cary