rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 |