[PATCH 1/3] ELF: Group PT_NOTE segments by section alignments

Alan Modra amodra@gmail.com
Fri Oct 5 04:24:00 GMT 2018


On Wed, Oct 03, 2018 at 05:55:19AM -0700, H.J. Lu wrote:
> 	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.

This patch caused a PT_NOTE header to be dropped in the following tests:
spu-elf  +FAIL: ld-spu/ovl
spu-elf  +FAIL: ld-spu/ovl2

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list