This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
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