fix --check-sections consistency error

Alan Modra amodra@bigpond.net.au
Fri Oct 10 09:18:00 GMT 2003


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



More information about the Binutils mailing list