From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 10 Aug 2012 22:48:20 +0200 Subject: [U-Boot] [PATCH] config: Always use GNU ld In-Reply-To: <1343924374-17404-1-git-send-email-otavio@ossystems.com.br> References: <1343924374-17404-1-git-send-email-otavio@ossystems.com.br> Message-ID: <20120810224820.71c15e05@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Thu, 2 Aug 2012 13:19:34 -0300 Otavio Salvador wrote: > From: Khem Raj > > This patch makes sure that we always use the GNU ld. U-Boot uses certain > construct e.g. OVERLAY which are not implemented in gold therefore it > always needs GNU ld for linking. > > It works well if default linker in toolchain is GNU ld but in some > cases we can have gold to be the default linker and also ship GNU ld > but not as default in such cases its called $(PREFIX)ld.bfd, with this > patch we make sure that if $(PREFIX)ld.bfd exists than we use that for > our ld. > > This way it does not matter what the default ld is. > > Signed-off-by: Otavio Salvador > Signed-off-by: Khem Raj > --- > config.mk | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) applied to my staging branch, thanks! Anatolij