This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: VMA section overlap warnings for overlays
- From: Andreas Schwab <schwab at redhat dot com>
- To: David Stubbs <stubbs at IceraSemi dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 15 Jul 2010 10:11:03 +0200
- Subject: Re: VMA section overlap warnings for overlays
- References: <4D60B0700D1DB54A8C0C6E9BE69163700E67DFD1@EXCHANGEVS.IceraSemi.local> <20100421082441.GG3510@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700E7815C7@EXCHANGEVS.IceraSemi.local> <20100422011106.GI3510@bubble.grove.modra.org> <20100422015303.GK3510@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700E7F2F15@EXCHANGEVS.IceraSemi.local> <20100424021750.GQ3510@bubble.grove.modra.org>
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."