diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch b/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch index 0b515d83c7..2df836057d 100644 --- a/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch +++ b/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 58ac9f95a3d83c29efaf7a8906fb6aefea8c8e79 Mon Sep 17 00:00:00 2001 | 1 | From 2e1b5e24a6759de7f73aa6060a574848d9131b5a Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 2 Mar 2015 01:58:54 +0000 | 3 | Date: Mon, 2 Mar 2015 01:58:54 +0000 |
4 | Subject: [PATCH 01/15] binutils-crosssdk: Generate relocatable SDKs | 4 | Subject: [PATCH 01/15] binutils-crosssdk: Generate relocatable SDKs |
@@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | 2 files changed, 5 insertions(+), 2 deletions(-) | 18 | 2 files changed, 5 insertions(+), 2 deletions(-) |
19 | 19 | ||
20 | diff --git a/ld/genscripts.sh b/ld/genscripts.sh | 20 | diff --git a/ld/genscripts.sh b/ld/genscripts.sh |
21 | index b6940d376d..a42c4d7a4b 100755 | 21 | index 8732422b3a..1f257e99ca 100755 |
22 | --- a/ld/genscripts.sh | 22 | --- a/ld/genscripts.sh |
23 | +++ b/ld/genscripts.sh | 23 | +++ b/ld/genscripts.sh |
24 | @@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}" | 24 | @@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}" |
@@ -37,16 +37,16 @@ index b6940d376d..a42c4d7a4b 100755 | |||
37 | ( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */" | 37 | ( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */" |
38 | . ${CUSTOMIZER_SCRIPT} | 38 | . ${CUSTOMIZER_SCRIPT} |
39 | . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc | 39 | . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc |
40 | ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu | 40 | ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu |
41 | +unset PARTIAL_LINKING | 41 | +unset PARTIAL_LINKING |
42 | 42 | ||
43 | LD_FLAG= | ||
44 | DATA_ALIGNMENT=${DATA_ALIGNMENT_} | 43 | DATA_ALIGNMENT=${DATA_ALIGNMENT_} |
44 | RELOCATING=" " | ||
45 | diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc | 45 | diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc |
46 | index d9138bc059..e48faeca43 100644 | 46 | index 9787ab5dac..0c8a93c2c8 100644 |
47 | --- a/ld/scripttempl/elf.sc | 47 | --- a/ld/scripttempl/elf.sc |
48 | +++ b/ld/scripttempl/elf.sc | 48 | +++ b/ld/scripttempl/elf.sc |
49 | @@ -138,8 +138,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then | 49 | @@ -139,8 +139,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then |
50 | DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);" | 50 | DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);" |
51 | fi | 51 | fi |
52 | fi | 52 | fi |
@@ -58,5 +58,5 @@ index d9138bc059..e48faeca43 100644 | |||
58 | if test -z "$PLT"; then | 58 | if test -z "$PLT"; then |
59 | IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }" | 59 | IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }" |
60 | -- | 60 | -- |
61 | 2.14.0 | 61 | 2.16.1 |
62 | 62 | ||