[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25191] binutils/strip-new: BFD (GNU Binutils) 2.33 interna
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/25191] binutils/strip-new: BFD (GNU Binutils) 2.33 internal error, aborting at elf.c:9101 in _bfd_elf_set_section_contents |
Date: |
Tue, 19 Nov 2019 06:21:30 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25191
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dd68a12bc4b19c50c31fe357335bb8ee9a3322fc
commit dd68a12bc4b19c50c31fe357335bb8ee9a3322fc
Author: Alan Modra <address@hidden>
Date: Tue Nov 19 14:53:44 2019 +1030
PR25191, internal error in _bfd_elf_set_section_contents
This PR copies a fuzzed PE input file to ELF output, in the process
confusing the ELF backend by copying COFF-only section flags to the
output. SEC_COFF_SHARED has the same value as SEC_ELF_COMPRESS. One
approach to fixing this problem is of course not to reuse flag bits,
but we've run out. So this patch only copies section flags that are
in the bfd_applicable_section_flags set when changing the flavour of
the output file.
PR 25191
* objcopy.c (is_nondebug_keep_contents_section): Use bfd_get_flavour.
(copy_object): Likewise.
(setup_section): Likewise. If flavour of input and output files
differ, restrict section flags to the intersection of input and
output bfd_applicable_section_flags.
--
You are receiving this mail because:
You are on the CC list for the bug.