diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-07-11 08:16:14 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-07-14 23:44:33 +0200 |
| commit | a52f2cb2e93ead8f747cecfa2df12a9a6e144499 (patch) | |
| tree | 6efb877f0fdda49fac4ce9e798ef595956c5b5a7 /meta-initramfs/recipes-devtools/klibc | |
| parent | 909b1a2a71bee7af13345a04aac01fbd780c3ff0 (diff) | |
| download | meta-openembedded-a52f2cb2e93ead8f747cecfa2df12a9a6e144499.tar.gz | |
klibc: Fix linking by using bfd linker when default linker is gold
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc')
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch | 30 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
2 files changed, 31 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 0000000000..41a6b9e130 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 9ea19bd9636806a73bcf29cfcee40a268f91eb4c 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 | Makefile | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/Makefile b/Makefile | ||
| 16 | index 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 | -- | ||
| 29 | 2.13.2 | ||
| 30 | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index be59aa4436..c4c3e00b8f 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
| @@ -16,6 +16,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ | |||
| 16 | file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \ | 16 | file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \ |
| 17 | file://0001-include-linux-sysinfo.h-directly.patch \ | 17 | file://0001-include-linux-sysinfo.h-directly.patch \ |
| 18 | file://0001-mkfifo-Implement-mkfifo.patch \ | 18 | file://0001-mkfifo-Implement-mkfifo.patch \ |
| 19 | file://0001-always-use-bfd-linker.patch \ | ||
| 19 | " | 20 | " |
| 20 | 21 | ||
| 21 | ARMPATCHES ?= "" | 22 | ARMPATCHES ?= "" |
