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