aboutsummaryrefslogtreecommitdiff
path: root/bfd/evax-etir.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-10-20 19:23:09 +0000
committerIan Lance Taylor <ian@airs.com>1997-10-20 19:23:09 +0000
commit412222d910b7776967c56d97482e863fcd6c7aa0 (patch)
treee0361e5e1b821a39b16088484eac631991b197d6 /bfd/evax-etir.c
parentd5241511dbe242f2c3e6208bb41130e76a050c15 (diff)
downloadgdb-412222d910b7776967c56d97482e863fcd6c7aa0.zip
gdb-412222d910b7776967c56d97482e863fcd6c7aa0.tar.gz
gdb-412222d910b7776967c56d97482e863fcd6c7aa0.tar.bz2
various evax patches
Diffstat (limited to 'bfd/evax-etir.c')
-rw-r--r--bfd/evax-etir.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/bfd/evax-etir.c b/bfd/evax-etir.c
index 2e64c28..187353b 100644
--- a/bfd/evax-etir.c
+++ b/bfd/evax-etir.c
@@ -1172,7 +1172,8 @@ _bfd_evax_write_etir (abfd)
#endif
}
- if (section->flags & SEC_HAS_CONTENTS)
+ if ((section->flags & SEC_HAS_CONTENTS)
+ && (! bfd_is_com_section (section)))
{
bfd_vma vaddr; /* virtual addr in section */
@@ -1246,7 +1247,7 @@ _bfd_evax_write_etir (abfd)
ETIR_S_C_STO_GBL_LW,
-1);
_bfd_evax_output_counted (abfd,
- _bfd_evax_length_hash_symbol (abfd, sym->name));
+ _bfd_evax_length_hash_symbol (abfd, sym->name, EOBJ_S_C_SYMSIZ));
_bfd_evax_output_flush (abfd);
}
else if (bfd_is_abs_section (sym->section))
@@ -1312,7 +1313,7 @@ _bfd_evax_write_etir (abfd)
ETIR_S_C_STO_GBL,
-1);
_bfd_evax_output_counted (abfd,
- _bfd_evax_length_hash_symbol (abfd, sym->name));
+ _bfd_evax_length_hash_symbol (abfd, sym->name, EOBJ_S_C_SYMSIZ));
_bfd_evax_output_flush (abfd);
}
else if (bfd_is_abs_section (sym->section))
@@ -1374,7 +1375,7 @@ _bfd_evax_write_etir (abfd)
evax_output_long(abfd, (unsigned long)(sec->index));
evax_output_quad(abfd, (uquad)addr);
- evax_output_counted(abfd, _bfd_evax_length_hash_symbol (abfd, sym->name));
+ evax_output_counted(abfd, _bfd_evax_length_hash_symbol (abfd, sym->name, EOBJ_S_C_SYMSIZ));
evax_output_flush(abfd);
#endif
}
@@ -1394,7 +1395,7 @@ _bfd_evax_write_etir (abfd)
(unsigned long)PRIV(evax_linkage_index));
PRIV(evax_linkage_index) += 2;
_bfd_evax_output_counted (abfd,
- _bfd_evax_length_hash_symbol (abfd, sym->name));
+ _bfd_evax_length_hash_symbol (abfd, sym->name, EOBJ_S_C_SYMSIZ));
_bfd_evax_output_byte (abfd, 0);
_bfd_evax_output_flush (abfd);
}
@@ -1415,7 +1416,7 @@ _bfd_evax_write_etir (abfd)
ETIR_S_C_STO_CA,
-1);
_bfd_evax_output_counted (abfd,
- _bfd_evax_length_hash_symbol (abfd, sym->name));
+ _bfd_evax_length_hash_symbol (abfd, sym->name, EOBJ_S_C_SYMSIZ));
_bfd_evax_output_flush (abfd);
}
break;