diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-10-03 13:22:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-10-03 13:22:40 -0700 |
commit | 23e463ed7c0d289e2291aaefd576bf02efd98df8 (patch) | |
tree | b557e7a8c86dcee1f502e87d38ebe3cef52420fa /ld | |
parent | e66cfcef729d758a5e605d57600530ad9b1bb9c3 (diff) | |
download | gdb-23e463ed7c0d289e2291aaefd576bf02efd98df8.zip gdb-23e463ed7c0d289e2291aaefd576bf02efd98df8.tar.gz gdb-23e463ed7c0d289e2291aaefd576bf02efd98df8.tar.bz2 |
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.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions