[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22490] segmentation fault: readelf -n corefile
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22490] segmentation fault: readelf -n corefile |
Date: |
Tue, 28 Nov 2017 16:19:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22490
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82ed9683ec099d8205dc499ac84febc975235af6
commit 82ed9683ec099d8205dc499ac84febc975235af6
Author: H.J. Lu <address@hidden>
Date: Tue Nov 28 08:18:33 2017 -0800
Properly handle note sections and segments
When dumping notes, get note alignment from either note section or note
segment. To support notes generated by assemblers with
https://sourceware.org/bugzilla/show_bug.cgi?id=22492
we treate alignment as 4 bytes if it is less than 4. Otherwise, we skip
notes if alignment isn't 4 nor 8 bytes.
We should call load_separate_debug_file only if e_shstrndx != SHN_UNDEF.
PR binutils/22490
* readelf.c (process_notes_at): Add an argument for note
alignment. If note alignment is less than 4, use 4 byte
alignment. Otherwise, skip notes if alignment isn't 4 nor
8 bytes.
(process_corefile_note_segments): Pass segment alignment to
process_notes_at.
(process_note_sections): Pass section alignment to
process_notes_at.
(process_object): Call load_separate_debug_file only if
e_shstrndx != SHN_UNDEF.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22490] New: segmentation fault: readelf -n corefile, hjl.tools at gmail dot com, 2017/11/24
- [Bug binutils/22490] segmentation fault: readelf -n corefile, cvs-commit at gcc dot gnu.org, 2017/11/27
- [Bug binutils/22490] segmentation fault: readelf -n corefile, nickc at redhat dot com, 2017/11/27
- [Bug binutils/22490] segmentation fault: readelf -n corefile, hjl.tools at gmail dot com, 2017/11/27
- [Bug binutils/22490] segmentation fault: readelf -n corefile, hjl.tools at gmail dot com, 2017/11/27
- [Bug binutils/22490] segmentation fault: readelf -n corefile, nickc at redhat dot com, 2017/11/28
- [Bug binutils/22490] segmentation fault: readelf -n corefile,
cvs-commit at gcc dot gnu.org <=
- [Bug binutils/22490] segmentation fault: readelf -n corefile, hjl.tools at gmail dot com, 2017/11/28