[PATCH] x86-64: Allocate input section memory if needed

Alan Modra amodra@gmail.com
Wed Dec 28 01:16:15 GMT 2022


On Tue, Dec 27, 2022 at 11:47:56AM -0800, H.J. Lu via Binutils wrote:
> +			  /* Cache the section contents for
> +			     elf_link_input_bfd.  */
> +			  elf_section_data (sec)->this_hdr.contents
> +			    = contents;

You shouldn't really be caching unaltered section contents when
!info->keep_memory.  I'm not saying the patch is wrong, but please fix
this when you have some time.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list