]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert binutils-2_12-branch
authorJason Thorpe <thorpej@netbsd.org>
Sat, 20 Jul 2002 04:24:21 +0000 (04:24 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Sat, 20 Jul 2002 04:24:21 +0000 (04:24 +0000)
DT_PLTGOT into the dynamic section if there is a PLT.

bfd/ChangeLog
bfd/elf64-alpha.c

index 987bd681bc59bce0b01b2b1c17160055e76099bd..b0c0d9bd9d2ce99662ec79e86033be27eda3e96b 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-05-14  Daniel Jacobowitz  <drow@mvista.com>
 
        * configure.in: Set is_release=y for 2.12.1 release.
index faf9944d2bc76867ec67724ab219fc7c9916c3c9..a24a70c14bc29e7a107d36e0e1f045f0657ac078 100644 (file)
@@ -3237,12 +3237,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;