summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-07-20 04:09:30 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-07-20 04:09:30 +0000
commitc0647bfc65ff9823ce5a75489a64027cb429caa4 (patch)
treef94d36142ba0e840a6044bb5bf64d9f2d10447aa
parenta1f67b58608c69c0663c9f8903325fa5ef83b947 (diff)
downloadbinutils-c0647bfc65ff9823ce5a75489a64027cb429caa4.tar.gz
binutils-c0647bfc65ff9823ce5a75489a64027cb429caa4.tar.bz2
binutils-c0647bfc65ff9823ce5a75489a64027cb429caa4.zip
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
DT_PLTGOT into the dynamic section if there is a PLT.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-alpha.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3a219e10f88..323294fe841 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 36b0cb69d4c..4aeb32d6d39 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -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;