mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
(cherry picked from commit a52f2cb2e9)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
2cd89a6618
commit
2b6cb6bd1f
|
|
@ -0,0 +1,30 @@
|
|||
From 9ea19bd9636806a73bcf29cfcee40a268f91eb4c 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 dc10fc5d..40647be4 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
|
||||
--
|
||||
2.13.2
|
||||
|
||||
|
|
@ -16,6 +16,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
|
|||
file://0001-Define-in_-structs-for-non-glibc-system-libs.patch \
|
||||
file://0001-include-linux-sysinfo.h-directly.patch \
|
||||
file://0001-mkfifo-Implement-mkfifo.patch \
|
||||
file://0001-always-use-bfd-linker.patch \
|
||||
"
|
||||
|
||||
ARMPATCHES ?= ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user