summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-03-02 02:06:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 10:53:11 +0100
commitb559d7f81f0793e70bdfcf6c1258530ba07c0217 (patch)
tree18910f69e4552c7f68e7b2992deb6960dabb7832 /meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch
parent1cb175fd7b9b1b954ccbc71f45fd968069c76b2a (diff)
downloadpoky-b559d7f81f0793e70bdfcf6c1258530ba07c0217.tar.gz
binutils: Switch to using binutils stable/2.25 branch
We have a lot of patches on top of 2.25 release that we need its easier/cleaner to use the git src instead of tarball and use the latest on the 2.25 branch Additionally, drop binutils-uclibc-300-006_better_file_error.patch since it has been redone with https://sourceware.org/ml/binutils/2006-10/msg00337.html upstream git'ify the patches against upstream repos for better maintainance Change-Id: I572c9bb49f60853e7ade4e8f63ab77b7e41476c5 (From OE-Core rev: 3c7fe424f850af70989ad682dd9c5be70cd02ca5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch b/meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch
new file mode 100644
index 0000000000..1e80c1f791
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch
@@ -0,0 +1,62 @@
1From f71ecf251f84b4bbc9b7a832d5cd4a8bae95d83b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:58:54 +0000
4Subject: [PATCH 01/13] Generate relocatable SDKs
5
6This patch will modify the ELF linker scripts so that the crosssdk
7linker will generate binaries with a 4096 bytes PT_INTERP section. When the binaries
8will be relocated, at SDK install time, the interpreter path can be easily
9changed by the relocating script.
10
11Upstream-Status: Inappropriate [SDK specific]
12
13Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 ld/genscripts.sh | 3 +++
17 ld/scripttempl/elf.sc | 4 ++--
18 2 files changed, 5 insertions(+), 2 deletions(-)
19
20diff --git a/ld/genscripts.sh b/ld/genscripts.sh
21index 499607a..075dd04 100755
22--- a/ld/genscripts.sh
23+++ b/ld/genscripts.sh
24@@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
25 LD_FLAG=r
26 DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
27 DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
28+PARTIAL_LINKING=" "
29 ( echo "/* Script for ld -r: link without relocation */"
30 . ${CUSTOMIZER_SCRIPT}
31 . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
32@@ -285,10 +286,12 @@ DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
33 LD_FLAG=u
34 DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
35 CONSTRUCTING=" "
36+PARTIAL_LINKING=" "
37 ( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */"
38 . ${CUSTOMIZER_SCRIPT}
39 . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
40 ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu
41+unset PARTIAL_LINKING
42
43 LD_FLAG=
44 DATA_ALIGNMENT=${DATA_ALIGNMENT_}
45diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
46index 4368fd9..9f01e8c 100644
47--- a/ld/scripttempl/elf.sc
48+++ b/ld/scripttempl/elf.sc
49@@ -131,8 +131,8 @@ if test -n "${COMMONPAGESIZE}"; then
50 DATA_SEGMENT_END=". = DATA_SEGMENT_END (.);"
51 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);"
52 fi
53-if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}"; then
54- INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp) }"
55+if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}${PARTIAL_LINKING}"; then
56+ INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp); . = 0x1000; }"
57 fi
58 if test -z "$PLT"; then
59 IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }"
60--
612.1.4
62