mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
Updates for fixing tic4x arch tagging of its object files.
* bfd/coffcode.h (coff_set_flags): Added get/set arch hooks. * include/coff/tic4x.h (TICOFF_TARGET_MACHINE_GET): Fixed define bug * include/coff/ti.h (TICOFF_TARGET_MACHINE_GET): Added macros * ld/Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o * ld/Makefile.in: Regenerate * ld/configure.tgt: Added extra target emulations * ld/emulparams/tic3xcoff.sh: Remove old settings * ld/emulparams/tic4xcoff.sh: Ditto * ld/emulparams/tic3xcoff-onchip.sh: Added new * ld/scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x * ld/scripttempl/tic3xcoff.sc: Remove
This commit is contained in:
@@ -2128,6 +2128,7 @@ coff_set_arch_mach_hook (abfd, filehdr)
|
||||
/* this TI COFF section should be used by all new TI COFF v0 targets */
|
||||
case TICOFF0MAGIC:
|
||||
arch = TICOFF_TARGET_ARCH;
|
||||
machine = TICOFF_TARGET_MACHINE_GET (internal_f->f_flags);
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
@@ -2142,6 +2143,7 @@ coff_set_arch_mach_hook (abfd, filehdr)
|
||||
#ifdef TI_TARGET_ID
|
||||
case TI_TARGET_ID:
|
||||
arch = TICOFF_TARGET_ARCH;
|
||||
machine = TICOFF_TARGET_MACHINE_GET (internal_f->f_flags);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
@@ -2612,6 +2614,7 @@ coff_set_flags (abfd, magicp, flagsp)
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
TICOFF_TARGET_MACHINE_SET (flagsp, bfd_get_mach (abfd));
|
||||
return TRUE;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user