diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2020-04-25 00:40:25 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2020-04-29 18:34:23 -0700 |
commit | d548f47df4d2e3d117d504a4c9977982c78a0556 (patch) | |
tree | e1dee17e4e4ef7333271c7b216105d2e146d9351 /bfd/ChangeLog | |
parent | 935f1f4ba35dc018ec6adbc1ba5f0787c84f273b (diff) | |
download | gdb-d548f47df4d2e3d117d504a4c9977982c78a0556.zip gdb-d548f47df4d2e3d117d504a4c9977982c78a0556.tar.gz gdb-d548f47df4d2e3d117d504a4c9977982c78a0556.tar.bz2 |
xtensa: fix XTENSA_NDIFF handling for PR ld/25861
Fields marked with XTENSA_NDIFF relocations are not negated, they only
have sign bits removed. Don't negate their values when relaxation is
performed. Don't add sign bits when the value is zero. Report overflow
when the result has negative sign but all significant bits are zero.
2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
bfd/
* elf32-xtensa.c (relax_section): Don't negate diff_value for
XTENSA_NDIFF relocations. Don't add sign bits whe diff_value
equals 0. Report overflow when the result has negative sign but
all significant bits are zero.
ld/
* testsuite/ld-xtensa/relax-diff1.d: New test definition.
* testsuite/ld-xtensa/relax-diff1.s: New test source.
* testsuite/ld-xtensa/relax-ndiff.d: New test definition.
* testsuite/ld-xtensa/relax-ndiff.s: New test source.
* testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
(relax-ndiff): New tests.
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 31e8526..25453b3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2020-04-29 Max Filippov <jcmvbkbc@gmail.com> + + * elf32-xtensa.c (relax_section): Don't negate diff_value for + XTENSA_NDIFF relocations. Don't add sign bits whe diff_value + equals 0. Report overflow when the result has negative sign but + all significant bits are zero. + 2020-04-29 Gunther Nikl <gnikl@justmail.de> * aoutx.h (swap_std_reloc_out): Special case 64 bit relocations. |