diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-25 14:31:34 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-25 14:31:58 +0300 |
commit | 8a9654cf65cc7f92afccf1d4b2360f3bd7c397ca (patch) | |
tree | aef28d7adaa9eab5502cadde87f95e7c054efd17 /sys-devel/binutils/files | |
parent | sys-apps/bat: arm64 keyworded (bug #733786) (diff) | |
download | gentoo-8a9654cf65cc7f92afccf1d4b2360f3bd7c397ca.tar.gz gentoo-8a9654cf65cc7f92afccf1d4b2360f3bd7c397ca.tar.bz2 gentoo-8a9654cf65cc7f92afccf1d4b2360f3bd7c397ca.zip |
sys-devel/binutils: Move patches into patchset
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sys-devel/binutils/files')
-rw-r--r-- | sys-devel/binutils/files/binutils-2.34-riscv-SEGV.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sys-devel/binutils/files/binutils-2.34-riscv-SEGV.patch b/sys-devel/binutils/files/binutils-2.34-riscv-SEGV.patch deleted file mode 100644 index ac70e504918c..000000000000 --- a/sys-devel/binutils/files/binutils-2.34-riscv-SEGV.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://sourceware.org/PR25900 -https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=a2714d6cca1f1c7695f8dc84b49a4a51d1db86c8 - -From a2714d6cca1f1c7695f8dc84b49a4a51d1db86c8 Mon Sep 17 00:00:00 2001 -From: Alan Modra <amodra@gmail.com> -Date: Fri, 1 May 2020 15:32:00 +0930 -Subject: [PATCH] PR25900, RISC-V: null pointer dereference - - PR 25900 - * elfnn-riscv.c (_bfd_riscv_relax_section): Check root.type before - accessing root.u.def of symbols. Also check root.u.def.section - is non-NULL. Reverse tests so as to make the logic positive. - ---- a/bfd/elfnn-riscv.c -+++ b/bfd/elfnn-riscv.c -@@ -4161,15 +4161,16 @@ _bfd_riscv_relax_section (bfd *abfd, asection *sec, - symval = 0; - sym_sec = bfd_und_section_ptr; - } -- else if (h->root.u.def.section->output_section == NULL -- || (h->root.type != bfd_link_hash_defined -- && h->root.type != bfd_link_hash_defweak)) -- continue; -- else -+ else if ((h->root.type == bfd_link_hash_defined -+ || h->root.type == bfd_link_hash_defweak) -+ && h->root.u.def.section != NULL -+ && h->root.u.def.section->output_section != NULL) - { - symval = h->root.u.def.value; - sym_sec = h->root.u.def.section; - } -+ else -+ continue; - - if (h->type != STT_FUNC) - reserve_size = --- -2.18.2 - |