d548f47df4
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. |
||
---|---|---|
.. | ||
call_overflow1.s | ||
call_overflow2.s | ||
call_overflow3.s | ||
call_overflow.d | ||
coalesce1.s | ||
coalesce2.s | ||
coalesce.d | ||
coalesce.t | ||
diff_overflow1.s | ||
diff_overflow2.s | ||
diff_overflow.d | ||
lcall1.s | ||
lcall2.s | ||
lcall.d | ||
lcall.t | ||
relax-diff1.d | ||
relax-diff1.s | ||
relax-loc.d | ||
relax-loc.s | ||
relax-ndiff.d | ||
relax-ndiff.s | ||
relax-static-defs.s | ||
relax-static-local-pie.d | ||
relax-static-local-shared.d | ||
relax-static-local.s | ||
relax-static-pie.d | ||
relax-static-shared.d | ||
relax-static.s | ||
relax-undef-weak-local-pie.d | ||
relax-undef-weak-local-shared.d | ||
relax-undef-weak-local.s | ||
relax-undef-weak-pie-export-dynamic.d | ||
relax-undef-weak-pie.d | ||
relax-undef-weak-shared.d | ||
relax-undef-weak.s | ||
tlsbin.dd | ||
tlsbin.rd | ||
tlsbin.s | ||
tlsbin.sd | ||
tlsbin.td | ||
tlslib.s | ||
tlspic1.s | ||
tlspic2.s | ||
tlspic.dd | ||
tlspic.rd | ||
tlspic.sd | ||
tlspic.td | ||
xtensa-linux.exp | ||
xtensa.exp |