[PATCH] bfd/bfd-in2.h: Change bfd_is_const_section back to old behavior.
Alan Modra
amodra@gmail.com
Mon Apr 20 01:46:51 GMT 2020
On Fri, Apr 17, 2020 at 02:07:12PM -0700, Sonja Schofield via Binutils wrote:
> Commit a48931cc2df9f87596d93b changed the bfd_is_const_section to
> only include abs_section and ind_section pointers, leaving out
> com_section and und_section pointers. Fix this by checking starting
> at com_section_pointer instead.
Your patch is correct except that it should instead be applied to
bfd/section.c, and I've already fixed the problem a slightly different
way using:
return (sec >= _bfd_std_section
&& sec < _bfd_std_section + (sizeof (_bfd_std_section)
/ sizeof (_bfd_std_section[0])));
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list