* section.c (bfd_is_const_section): Correct test for special
sections.
* bfd-in2.h: Regenerate.
+2020-04-18 Alan Modra <amodra@gmail.com>
+
+ * section.c (bfd_is_const_section): Correct test for special
+ sections.
+ * bfd-in2.h: Regenerate.
+
2020-04-17 Alan Modra <amodra@gmail.com>
PR 25842
static inline bfd_boolean
bfd_is_const_section (const asection *sec)
{
- return sec >= bfd_abs_section_ptr && sec <= bfd_ind_section_ptr;
+ return (sec >= _bfd_std_section
+ && sec < _bfd_std_section + (sizeof (_bfd_std_section)
+ / sizeof (_bfd_std_section[0])));
}
/* Return TRUE if input section SEC has been discarded. */
.static inline bfd_boolean
.bfd_is_const_section (const asection *sec)
.{
-. return sec >= bfd_abs_section_ptr && sec <= bfd_ind_section_ptr;
+. return (sec >= _bfd_std_section
+. && sec < _bfd_std_section + (sizeof (_bfd_std_section)
+. / sizeof (_bfd_std_section[0])));
.}
.
.{* Return TRUE if input section SEC has been discarded. *}