diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-07-22 18:59:11 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-07-23 12:03:56 -0700 |
commit | f82863d797e461b936dff2b659a3aa65088ee87e (patch) | |
tree | efb7dbb7e2dba3e2e8861148a88e1d6ff9473ed9 /bfd/ChangeLog | |
parent | 5d3a462f05cba5b0c0c96de899b84fb84155c760 (diff) | |
download | gdb-f82863d797e461b936dff2b659a3aa65088ee87e.zip gdb-f82863d797e461b936dff2b659a3aa65088ee87e.tar.gz gdb-f82863d797e461b936dff2b659a3aa65088ee87e.tar.bz2 |
xtensa: move dynamic relocations sections consistency check
The function elf_xtensa_finish_dynamic_sections checks that sizes of
sections .rela.dyn and .rela.plt match number of corresponding relocation
records, but the check is only done when .rela.plt is non-empty, so, e.g.
it is never run for the static PIE.
Rearrange the test so that .rela.dyn and .rela.plt are checked always.
bfd/
2018-07-23 Max Filippov <jcmvbkbc@gmail.com>
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move
relocation sections consistency check to always check both
.rela.dyn and .rela.plt when they exist. Rearrange variable
definition and assignment places.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3bdd2aa..370289d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2018-07-23 Max Filippov <jcmvbkbc@gmail.com> + * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move + relocation sections consistency check to always check both + .rela.dyn and .rela.plt when they exist. Rearrange variable + definition and assignment places. + +2018-07-23 Max Filippov <jcmvbkbc@gmail.com> + * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic relocations section for dynamic undefined weak symbols when linking a shared object. |