summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch
new file mode 100644
index 000000000..41a6b9e13
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch
@@ -0,0 +1,30 @@
1From 9ea19bd9636806a73bcf29cfcee40a268f91eb4c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Jul 2017 08:09:52 -0700
4Subject: [PATCH] always use bfd linker
5
6its possible that distros choose to default to gold linker
7therefore explicitly asking for bfd linker would fix the
8linking issues on such distros
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Makefile b/Makefile
16index dc10fc5d..40647be4 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -20,7 +20,7 @@ include $(srctree)/scripts/Kbuild.include
20 KLIBCROSS ?= $(CROSS_COMPILE)
21 export KLIBCROSS
22 export CC := $(KLIBCROSS)gcc
23-export LD := $(KLIBCROSS)ld
24+export LD := $(KLIBCROSS)ld.bfd
25 export AR := $(KLIBCROSS)ar
26 export RANLIB := $(KLIBCROSS)ranlib
27 export STRIP := $(KLIBCROSS)strip
28--
292.13.2
30