This is the mail archive of the binutils@sources.redhat.com 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: fix --check-sections consistency error


On Fri, Oct 10, 2003 at 02:51:44AM -0300, Alexandre Oliva wrote:
> Now...  Don't we want to make this change, to remain consistent with
> IGNORE_SECTIONS elsewhere?  Or do we want to be stricter here?

I think it's better to keep the old behaviour.  ie. use

		    if ((bfd_get_section_flags (output_bfd, os->bfd_section)
			 & (SEC_ALLOC | SEC_LOAD)) != 0
			&& (bfd_get_section_flags (output_bfd, os->bfd_section)
			    & SEC_NEVER_LOAD) == 0
			&& bfd_section_size (output_bfd, os->bfd_section) != 0
			&& ...

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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