ELF: Group PT_NOTE segments by section alignments
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Oct 2018 20:22:26 +0000 (13:22 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Oct 2018 20:22:40 +0000 (13:22 -0700)
commit23e463ed7c0d289e2291aaefd576bf02efd98df8
treeb557e7a8c86dcee1f502e87d38ebe3cef52420fa
parente66cfcef729d758a5e605d57600530ad9b1bb9c3
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.
bfd/ChangeLog
bfd/elf.c
This page took 0.027152 seconds and 4 git commands to generate.