From 316f6b10f0334394ce19d885e1e125cb149a2421 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Fri, 13 May 2011 18:15:29 +0000 Subject: ld/ (eelf32_tic6x_linux_be.c, eelf32_tic6x_linux_le.c, eelf32_tic6x_elf_be.c, eelf32_tic6x_elf_le.c): New rules. * Makefile.am (ALL_EMULATIONS): Add these files. (eelf32_tic6x_be.c, eelf32_tic6x_le.c): Depend on tic6xdsbt.em. * Makefile.in: Regenerated. * emultempl/tic6xdsbt.em (is_tic6x_target): Allow more tic6x target vectors. * emulparams/elf32_tic6x_elf_be.sh: New file. * emulparams/elf32_tic6x_elf_le.sh: New file. * emulparams/elf32_tic6x_linux_be.sh: New file. * emulparams/elf32_tic6x_linux_le.sh: New file. * configure.tgt (tic6x-*-elf, tic6x-*-uclinux): New. (tic6x-*-*): Replaced by these. ld/testsuite/ * ld-tic6x/dsbt.ld (OUTPUT_FORMAT): Add. * ld-tic6x/tic6x.exp: Add OSABI tests. bfd/ * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New. (tic6x-*-*): Replaced by these. * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function. (elf32_tic6x_check_relocs): Create dynamic sections if -shared. (elf_backend_relocs_compatible, elf_backend_post_process_headers): Define. (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include "elf32-target.h" two more times. * configure.in: Handle bfd_elf32_tic6x_linux_be_vec, bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and bfd_elf32_tic6x_elf_le_vec. * configure: Regenerate. --- bfd/config.bfd | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bfd/config.bfd') diff --git a/bfd/config.bfd b/bfd/config.bfd index 618bfdf535..7e9f2d3331 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -1465,9 +1465,14 @@ case "${targ}" in ;; #endif - tic6x-*-*) - targ_defvec=bfd_elf32_tic6x_le_vec - targ_selvecs=bfd_elf32_tic6x_be_vec + tic6x-*-elf) + targ_defvec=bfd_elf32_tic6x_elf_le_vec + targ_selvecs="bfd_elf32_tic6x_elf_be_vec bfd_elf32_tic6x_le_vec bfd_elf32_tic6x_be_vec" + ;; + + tic6x-*-uclinux) + targ_defvec=bfd_elf32_tic6x_linux_le_vec + targ_selvecs="bfd_elf32_tic6x_linux_be_vec bfd_elf32_tic6x_le_vec bfd_elf32_tic6x_be_vec" ;; tic80*-*-*) -- cgit v1.2.1