This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] ELF: Group PT_NOTE segments by section alignments
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 03 Oct 2018 16:36:15 -0400
- Subject: [binutils-gdb] ELF: Group PT_NOTE segments by section alignments
*** TEST RESULTS FOR COMMIT 23e463ed7c0d289e2291aaefd576bf02efd98df8 ***
Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 23e463ed7c0d289e2291aaefd576bf02efd98df8
ELF: Group PT_NOTE segments by section alignments
Alignments of SHT_NOTE sections can be 8 bytes for 64-bit ELF files. We
should put all adjacent SHT_NOTE sections with the same section alignment
into a single PT_NOTE segment even when the section alignment != 4 bytes.
Also check SHT_NOTE section type instead of section name.
PR ld/23658
* elf.c (get_program_header_size): Put all adjacent SHT_NOTE
sections with the same section alignment into a single PT_NOTE
segment. Check SHT_NOTE section type instead of section name.
(_bfd_elf_map_sections_to_segments): Likewise.