* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
authorJason Thorpe <thorpej@netbsd.org>
Sat, 20 Jul 2002 04:09:30 +0000 (04:09 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Sat, 20 Jul 2002 04:09:30 +0000 (04:09 +0000)
DT_PLTGOT into the dynamic section if there is a PLT.

bfd/ChangeLog
bfd/elf64-alpha.c

index 3a219e10f88e23862b356406c7a0297963911c1d..323294fe841f95055075357e2421952c8211af93 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-20  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
+       DT_PLTGOT into the dynamic section if there is a PLT.
+
 2002-07-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
index 36b0cb69d4c0cf1d0bf7825d19201b2881a43e5e..4aeb32d6d3912a4a6918784eda34d793604241c9 100644 (file)
@@ -4120,12 +4120,10 @@ elf64_alpha_size_dynamic_sections (output_bfd, info)
            return false;
        }
 
-      if (!add_dynamic_entry (DT_PLTGOT, 0))
-       return false;
-
       if (relplt)
        {
-         if (!add_dynamic_entry (DT_PLTRELSZ, 0)
+         if (!add_dynamic_entry (DT_PLTGOT, 0)
+             || !add_dynamic_entry (DT_PLTRELSZ, 0)
              || !add_dynamic_entry (DT_PLTREL, DT_RELA)
              || !add_dynamic_entry (DT_JMPREL, 0))
            return false;