old-cross-binutils/ld/testsuite/ld-tic6x
Joseph Myers 418205099b bfd:
* elf32-tic6x.h: New.
	* elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
	* elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
	elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
	elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
	elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
	bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
	(elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
	elf32_tic6x_relocate_section): Handle REL relocations.
	(elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.

gas:
	* config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
	(md_longopts): Add -mgenerate-rel.
	(tic6x_generate_rela): New.
	(md_parse_option): Handle -mgenerate-rel.
	(md_show_usage): Add comment that -mgenerate-rel is undocumented.
	(tic6x_init_after_args): New.
	(md_apply_fix): Correct shift calculations for SB-relative
	relocations.
	(md_pcrel_from): Change to tic6x_pcrel_from_section.  Do not
	adjust addresses for relocations referencing symbols in other
	sections.
	(tc_gen_reloc): Adjust addend calculations for REL relocations.
	* config/tc-tic6x.h (MD_PCREL_FROM_SECTION,
	tic6x_pcrel_from_section, tc_init_after_args,
	tic6x_init_after_args): New.

ld/testsuite:
	* ld-tic6x/data-reloc-global-rel.d,
	ld-tic6x/data-reloc-global-rel.s,
	ld-tic6x/data-reloc-local-r-rel.d,
	ld-tic6x/data-reloc-local-rel.d, ld-tic6x/mvk-reloc-global-rel.d,
	ld-tic6x/mvk-reloc-global-rel.s, ld-tic6x/mvk-reloc-local-1-rel.s,
	ld-tic6x/mvk-reloc-local-2-rel.s,
	ld-tic6x/mvk-reloc-local-r-rel.d, ld-tic6x/mvk-reloc-local-rel.d,
	ld-tic6x/pcrel-reloc-global-rel.d,
	ld-tic6x/pcrel-reloc-local-r-rel.d,
	ld-tic6x/pcrel-reloc-local-rel.d, ld-tic6x/sbr-reloc-global-rel.d,
	ld-tic6x/sbr-reloc-global-rel.s, ld-tic6x/sbr-reloc-local-1-rel.s,
	ld-tic6x/sbr-reloc-local-2-rel.s,
	ld-tic6x/sbr-reloc-local-r-rel.d, ld-tic6x/sbr-reloc-local-rel.d:
	New.
2010-04-20 22:03:00 +00:00
..
data-reloc-global-rel.d bfd: 2010-04-20 22:03:00 +00:00
data-reloc-global-rel.s bfd: 2010-04-20 22:03:00 +00:00
data-reloc-global.d
data-reloc-global.s
data-reloc-local-1.s
data-reloc-local-2.s
data-reloc-local-r-rel.d bfd: 2010-04-20 22:03:00 +00:00
data-reloc-local-r.d
data-reloc-local-rel.d bfd: 2010-04-20 22:03:00 +00:00
data-reloc-local.d
generic.ld
mvk-reloc-global-rel.d bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-global-rel.s bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-global.d
mvk-reloc-global.s
mvk-reloc-local-1-rel.s bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-local-1.s
mvk-reloc-local-2-rel.s bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-local-2.s
mvk-reloc-local-r-rel.d bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-local-r.d
mvk-reloc-local-rel.d bfd: 2010-04-20 22:03:00 +00:00
mvk-reloc-local.d
pcrel-reloc-global-rel.d bfd: 2010-04-20 22:03:00 +00:00
pcrel-reloc-global.d
pcrel-reloc-global.s
pcrel-reloc-local-1.s
pcrel-reloc-local-2.s
pcrel-reloc-local-r-rel.d bfd: 2010-04-20 22:03:00 +00:00
pcrel-reloc-local-r.d
pcrel-reloc-local-rel.d bfd: 2010-04-20 22:03:00 +00:00
pcrel-reloc-local.d
reloc-overflow-abs-s16-1.d
reloc-overflow-abs-s16-2.d
reloc-overflow-abs-s16.s
reloc-overflow-abs8-1.d
reloc-overflow-abs8-2.d
reloc-overflow-abs8.s
reloc-overflow-abs16-1.d
reloc-overflow-abs16-2.d
reloc-overflow-abs16.s
reloc-overflow-pcr-s7-1.d
reloc-overflow-pcr-s7-2.d
reloc-overflow-pcr-s7.s
reloc-overflow-pcr-s10-1.d
reloc-overflow-pcr-s10-2.d
reloc-overflow-pcr-s10.s
reloc-overflow-pcr-s12-1.d
reloc-overflow-pcr-s12-2.d
reloc-overflow-pcr-s12.s
reloc-overflow-pcr-s21-1.d
reloc-overflow-pcr-s21-2.d
reloc-overflow-pcr-s21.s
reloc-overflow-sbr-s16-1.d
reloc-overflow-sbr-s16-2.d
reloc-overflow-sbr-s16.s
reloc-overflow-sbr-u15-b-1.d
reloc-overflow-sbr-u15-b-2.d
reloc-overflow-sbr-u15-b.s
reloc-overflow-sbr-u15-h-1.d
reloc-overflow-sbr-u15-h-2.d
reloc-overflow-sbr-u15-h.s
reloc-overflow-sbr-u15-w-1.d
reloc-overflow-sbr-u15-w-2.d
reloc-overflow-sbr-u15-w.s
sbr-reloc-global-rel.d bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-global-rel.s bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-global.d
sbr-reloc-global.s
sbr-reloc-local-1-rel.s bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-local-1.s
sbr-reloc-local-2-rel.s bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-local-2.s
sbr-reloc-local-r-rel.d bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-local-r.d
sbr-reloc-local-rel.d bfd: 2010-04-20 22:03:00 +00:00
sbr-reloc-local.d
sbr.ld
tic6x.exp