This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: VMA section overlap warnings for overlays


Alan Modra <amodra@gmail.com> writes:

> @@ -5837,7 +5853,8 @@ copy_elf_program_header (bfd *ibfd, bfd 
>  	   section = section->next)
>  	{
>  	  this_hdr = &(elf_section_data(section)->this_hdr);
> -	  if (ELF_IS_SECTION_IN_SEGMENT_FILE (this_hdr, segment))
> +	  if (this_hdr->sh_size != 0
> +	      && ELF_SECTION_IN_SEGMENT (this_hdr, segment))

Why can't an empty section never be part of a segment?

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]