* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Set DT_RELASZ
authorAlan Modra <amodra@gmail.com>
Wed, 31 Oct 2001 14:58:14 +0000 (14:58 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 31 Oct 2001 14:58:14 +0000 (14:58 +0000)
whenever DT_PLTRELSZ.

bfd/ChangeLog
bfd/elf32-hppa.c

index b84842e65e0088563e2e09a75f90a7a71407876b..441db5fed80392bb21ee0ef0e4e6dd4270921487 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Set DT_RELASZ
+       whenever DT_PLTRELSZ.
+
 2001-10-29  NIIBE Yutaka  <gniibe@m17n.org>
 
        * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
index c10e892fea455aa140917fc3f9fd693bcfeb6c54..7d65a14ab18e0d31181c2a52bae931834b672d7f 100644 (file)
@@ -2368,10 +2368,8 @@ elf32_hppa_size_dynamic_sections (output_bfd, info)
        {
          if (s->_raw_size != 0)
            {
-             /* Remember whether there are any reloc sections other
-                than .rela.plt.  */
-             if (s != htab->srelplt)
-               relocs = true;
+             /* Remember whether there are any reloc sections.  */
+             relocs = true;
 
              /* We use the reloc_count field as a counter if we need
                 to copy relocs into the output file.  */