along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#define ARCH 32
#define TARGETNAME "a.out-sunos-big"
#define MY(OP) CAT(sunos_big_,OP)
section of the dynamic object. We don't want to allocate space
for it in our process image. */
if ((abfd->flags & DYNAMIC) != 0
- && section == &bfd_com_section)
+ && bfd_is_com_section (section))
section = obj_bsssec (abfd);
- if (section != &bfd_und_section
+ if (! bfd_is_und_section (section)
&& h->root.root.type != bfd_link_hash_new
&& h->root.root.type != bfd_link_hash_undefined)
{
We do not want this new definition to override the
existing definition, so we pretend it is just a
reference. */
- section = &bfd_und_section;
+ section = bfd_und_section_ptr;
}
else if ((h->root.root.type == bfd_link_hash_defined
+ && h->root.root.u.def.section->owner != NULL
&& (h->root.root.u.def.section->owner->flags & DYNAMIC) != 0)
|| (h->root.root.type == bfd_link_hash_common
&& ((h->root.root.u.c.section->owner->flags & DYNAMIC)
object. */
if ((abfd->flags & DYNAMIC) == 0)
{
- if (section == &bfd_und_section)
+ if (bfd_is_und_section (section))
new_flag = SUNOS_REF_REGULAR;
else
new_flag = SUNOS_DEF_REGULAR;
}
else
{
- if (section == &bfd_und_section)
+ if (bfd_is_und_section (section))
new_flag = SUNOS_REF_DYNAMIC;
else
new_flag = SUNOS_DEF_DYNAMIC;
sec = h->root.root.u.def.section;
output_section = sec->output_section;
- BFD_ASSERT (output_section == &bfd_abs_section
+ BFD_ASSERT (bfd_is_abs_section (output_section)
|| output_section->owner == output_bfd);
if (strcmp (sec->name, ".plt") == 0)
{