diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-07-20 04:24:21 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-07-20 04:24:21 +0000 |
commit | 630dfe9a3683d0246d81261aa60c00c543c85610 (patch) | |
tree | ce9d784fa9ddd092ea9009b40adb8bb19968e9d5 | |
parent | 864cce64b369375f2d3161313d81a82959df6777 (diff) | |
download | gdb-binutils-2_12-branch.zip gdb-binutils-2_12-branch.tar.gz gdb-binutils-2_12-branch.tar.bz2 |
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insertbinutils-2_12-branch
DT_PLTGOT into the dynamic section if there is a PLT.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-alpha.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 987bd68..b0c0d9b 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-05-14 Daniel Jacobowitz <drow@mvista.com> * configure.in: Set is_release=y for 2.12.1 release. diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index faf9944..a24a70c 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -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; |