hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 63ab5102d6ef362a597941e62470bf19e6f1652b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 11 Jul 2017 08:09:52 -0700
Subject: [PATCH] always use bfd linker
 
its possible that distros choose to default to gold linker
therefore explicitly asking for bfd linker would fix the
linking issues on such distros
 
Signed-off-by: Khem Raj <raj.khem@gmail.com>
 
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/Makefile b/Makefile
index dc10fc5..40647be 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ include $(srctree)/scripts/Kbuild.include
 KLIBCROSS    ?= $(CROSS_COMPILE)
 export KLIBCROSS
 export CC    := $(KLIBCROSS)gcc
-export LD    := $(KLIBCROSS)ld
+export LD    := $(KLIBCROSS)ld.bfd
 export AR    := $(KLIBCROSS)ar
 export RANLIB    := $(KLIBCROSS)ranlib
 export STRIP    := $(KLIBCROSS)strip