binutils-gdb/ld/testsuite/ld-xtensa
Max Filippov d548f47df4 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.
2020-04-29 18:34:23 -07:00
..
call_overflow.d bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow1.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow2.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
call_overflow3.s bfd: xtensa: fix callx relaxation 2019-02-20 02:51:01 -08:00
coalesce.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
coalesce.t
coalesce1.s
coalesce2.s
diff_overflow.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
diff_overflow1.s
diff_overflow2.s
lcall.d xtensa: ld: convert tests to run_dump_test 2018-07-23 12:06:40 -07:00
lcall.t
lcall1.s
lcall2.s
relax-diff1.d xtensa: fix XTENSA_NDIFF handling for PR ld/25861 2020-04-29 18:34:23 -07:00
relax-diff1.s xtensa: fix XTENSA_NDIFF handling for PR ld/25861 2020-04-29 18:34:23 -07:00
relax-loc.d xtensa: fix PR ld/25861 2020-04-22 18:46:45 -07:00
relax-loc.s xtensa: fix PR ld/25861 2020-04-22 18:46:45 -07:00
relax-ndiff.d xtensa: fix XTENSA_NDIFF handling for PR ld/25861 2020-04-29 18:34:23 -07:00
relax-ndiff.s xtensa: fix XTENSA_NDIFF handling for PR ld/25861 2020-04-29 18:34:23 -07:00
relax-static-defs.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-local.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-static.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-local.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-pie-export-dynamic.d bfd: xtensa: fix shrink_dynamic_reloc_sections for export-dynamic 2019-03-29 10:02:10 -07:00
relax-undef-weak-pie.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak-shared.d xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
relax-undef-weak.s xtensa: ld: add tests for static linkage relaxation 2018-07-23 12:05:43 -07:00
tlsbin.dd
tlsbin.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlsbin.s
tlsbin.sd
tlsbin.td
tlslib.s
tlspic.dd
tlspic.rd Place .shstrtab section after .symtab and .strtab, thus restoring monotonically increasing section offsets. 2016-08-19 09:16:30 +01:00
tlspic.sd
tlspic.td
tlspic1.s
tlspic2.s
xtensa-linux.exp Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
xtensa.exp xtensa: fix XTENSA_NDIFF handling for PR ld/25861 2020-04-29 18:34:23 -07:00