[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/21412] global-buffer-overflow in objcopy
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/21412] global-buffer-overflow in objcopy |
Date: |
Sun, 23 Apr 2017 11:54:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21412
--- Comment #3 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=bce964aa6c777d236fbd641f2bc7bb931cfe4bf3
commit bce964aa6c777d236fbd641f2bc7bb931cfe4bf3
Author: Alan Modra <address@hidden>
Date: Sun Apr 23 11:03:34 2017 +0930
PR 21412, get_reloc_section assumes .rel/.rela name for SHT_REL/RELA.
This patch fixes an assumption made by code that runs for objcopy and
strip, that SHT_REL/SHR_RELA sections are always named starting with a
.rel/.rela prefix. I'm also modifying the interface for
elf_backend_get_reloc_section, so any backend function just needs to
handle name mapping.
PR 21412
* elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
parameters and comment.
(_bfd_elf_get_reloc_section): Delete.
(_bfd_elf_plt_get_reloc_section): Declare.
* elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
New functions. Don't blindly skip over assumed .rel/.rela prefix.
Extracted from..
(_bfd_elf_get_reloc_section): ..here. Delete.
(assign_section_numbers): Call elf_get_reloc_section.
* elf64-ppc.c (elf_backend_get_reloc_section): Define.
* elfxx-target.h (elf_backend_get_reloc_section): Update.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/21412] New: global-buffer-overflow in objcopy, dungnguy at comp dot nus.edu.sg, 2017/04/22
- [Bug binutils/21412] global-buffer-overflow in objcopy, boehme.marcel at gmail dot com, 2017/04/22
- [Bug binutils/21412] global-buffer-overflow in objcopy, amodra at gmail dot com, 2017/04/22
- [Bug binutils/21412] global-buffer-overflow in objcopy, amodra at gmail dot com, 2017/04/22
- [Bug binutils/21412] global-buffer-overflow in objcopy, amodra at gmail dot com, 2017/04/22
- [Bug binutils/21412] global-buffer-overflow in objcopy,
cvs-commit at gcc dot gnu.org <=
- [Bug binutils/21412] global-buffer-overflow in objcopy, amodra at gmail dot com, 2017/04/23