diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-12-04 22:41:59 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2007-12-04 22:41:59 +0000 |
commit | c243ad3b813196788088400e57d839acaf7dae35 (patch) | |
tree | 0e4f1526077ebade00f0b8510df4616b3e8627ed | |
parent | 3966e1906c7b0689cacba9954d0f5d87c3b6bb27 (diff) | |
download | gdb-c243ad3b813196788088400e57d839acaf7dae35.zip gdb-c243ad3b813196788088400e57d839acaf7dae35.tar.gz gdb-c243ad3b813196788088400e57d839acaf7dae35.tar.bz2 |
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT
entry for all dynamic objects.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-xtensa.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 547b758..c0f367c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-12-04 Bob Wilson <bob.wilson@acm.org> + + * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT + entry for all dynamic objects. + 2007-12-04 Alan Modra <amodra@bigpond.net.au> * elf32-spu.c (spu_elf_size_stubs): Correct section alignment. diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 6bf5609..c45a18c 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -1504,8 +1504,7 @@ elf_xtensa_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, if (relplt) { - if (!add_dynamic_entry (DT_PLTGOT, 0) - || !add_dynamic_entry (DT_PLTRELSZ, 0) + if (!add_dynamic_entry (DT_PLTRELSZ, 0) || !add_dynamic_entry (DT_PLTREL, DT_RELA) || !add_dynamic_entry (DT_JMPREL, 0)) return FALSE; @@ -1519,7 +1518,8 @@ elf_xtensa_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED, return FALSE; } - if (!add_dynamic_entry (DT_XTENSA_GOT_LOC_OFF, 0) + if (!add_dynamic_entry (DT_PLTGOT, 0) + || !add_dynamic_entry (DT_XTENSA_GOT_LOC_OFF, 0) || !add_dynamic_entry (DT_XTENSA_GOT_LOC_SZ, 0)) return FALSE; } |