Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | From b3d35e7dd27a755df5acbe050837885914dbb28b Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Tue, 10 May 2016 11:34:50 -0400 |
| 4 | Subject: [PATCH] fix unknow option for gold linker |
| 5 | |
| 6 | - Revert the following patch, since oe-core work with gcc 5 |
| 7 | ... |
| 8 | commit 3055a3797f16693dfdd855fa68bc57fd900dc408 |
| 9 | Author: Peter Jones <pjones@redhat.com> |
| 10 | Date: 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 | |
| 21 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 22 | --- |
| 23 | gcc.specs | 2 +- |
| 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 25 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | Index: git/gcc.specs |
| 27 | =================================================================== |
| 28 | --- git.orig/gcc.specs |
| 29 | +++ git/gcc.specs |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | @@ -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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | -+ %{!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} |