blob: 96d0c6b3b28f2b5a74dcbc6d8f3493c3baa9088d [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From b3d35e7dd27a755df5acbe050837885914dbb28b Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 10 May 2016 11:34:50 -0400
4Subject: [PATCH] fix unknow option for gold linker
5
6- Revert the following patch, since oe-core work with gcc 5
7...
8commit 3055a3797f16693dfdd855fa68bc57fd900dc408
9Author: Peter Jones <pjones@redhat.com>
10Date: Mon Feb 15 14:15:40 2016 -0500
11
12 Make gcc.specs work with gcc 6 / binutils 2.26
13
14 Apparently binutils 2.26 gets real picky about "ld -PIC" vs "ld -fPIC".
15
16 Signed-off-by: Peter Jones <pjones@redhat.com>
17...
18
19- Remove unknown option '--add-needed'
20
21Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
22---
23 gcc.specs | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026Index: git/gcc.specs
27===================================================================
28--- git.orig/gcc.specs
29+++ git/gcc.specs
Patrick Williamsddad1a12017-02-23 20:36:32 -060030@@ -14,4 +14,4 @@
31 + %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now}
32
33 *link:
Brad Bishopd7bf8c12018-02-25 22:55:05 -050034-+ %{!static:--fatal-warnings} --no-undefined-version --no-allow-shlib-undefined --add-needed -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:%<pie}
35++ %{!static:--fatal-warnings} --no-undefined-version --no-allow-shlib-undefined -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:%<pie}