summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch25
1 files changed, 2 insertions, 23 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch b/meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch
index 38225d171e..902a90dbc3 100644
--- a/meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2018-18607.patch
@@ -16,28 +16,9 @@ Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
16 bfd/elflink.c | 20 ++++++++++++++------ 16 bfd/elflink.c | 20 ++++++++++++++------
17 2 files changed, 21 insertions(+), 6 deletions(-) 17 2 files changed, 21 insertions(+), 6 deletions(-)
18 18
19diff --git a/bfd/ChangeLog b/bfd/ChangeLog
20index da423b1..1f3fc1c 100644
21--- a/bfd/ChangeLog
22+++ b/bfd/ChangeLog
23@@ -1,5 +1,12 @@
24 2018-10-23 Alan Modra <amodra@gmail.com>
25
26+ PR 23805
27+ * elflink.c (elf_link_input_bfd): Don't segfault on finding
28+ STT_TLS symbols without any TLS sections. Instead, change the
29+ symbol type to STT_NOTYPE.
30+
31+2018-10-23 Alan Modra <amodra@gmail.com>
32+
33 PR 23806
34 * merge.c (_bfd_add_merge_section): Don't attempt to merge
35 sections with ridiculously large alignments.
36diff --git a/bfd/elflink.c b/bfd/elflink.c
37index c3876cb..87440db 100644
38--- a/bfd/elflink.c 19--- a/bfd/elflink.c
39+++ b/bfd/elflink.c 20+++ b/bfd/elflink.c
40@@ -10489,8 +10489,11 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd) 21@@ -10496,8 +10496,11 @@ elf_link_input_bfd (struct elf_final_lin
41 if (ELF_ST_TYPE (osym.st_info) == STT_TLS) 22 if (ELF_ST_TYPE (osym.st_info) == STT_TLS)
42 { 23 {
43 /* STT_TLS symbols are relative to PT_TLS segment base. */ 24 /* STT_TLS symbols are relative to PT_TLS segment base. */
@@ -51,7 +32,7 @@ index c3876cb..87440db 100644
51 } 32 }
52 } 33 }
53 34
54@@ -11046,12 +11049,17 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd) 35@@ -11053,12 +11056,17 @@ elf_link_input_bfd (struct elf_final_lin
55 sym.st_value += osec->vma; 36 sym.st_value += osec->vma;
56 if (ELF_ST_TYPE (sym.st_info) == STT_TLS) 37 if (ELF_ST_TYPE (sym.st_info) == STT_TLS)
57 { 38 {
@@ -73,5 +54,3 @@ index c3876cb..87440db 100644
73 } 54 }
74 } 55 }
75 56
76--
772.9.3