diff options
author | Svein Seldal <svein@dev.seldal.com> | 2003-01-20 22:34:39 +0000 |
---|---|---|
committer | Svein Seldal <svein@dev.seldal.com> | 2003-01-20 22:34:39 +0000 |
commit | 0da35f8be8ebac5eb49ab2d7bc30022361d3d107 (patch) | |
tree | 25e93634d71321c0b80ffdecf85cf5d164d2fa44 /bfd/coffcode.h | |
parent | eed2b28c05201aea858a67394caa03e0fcff3bcb (diff) | |
download | gdb-0da35f8be8ebac5eb49ab2d7bc30022361d3d107.zip gdb-0da35f8be8ebac5eb49ab2d7bc30022361d3d107.tar.gz gdb-0da35f8be8ebac5eb49ab2d7bc30022361d3d107.tar.bz2 |
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
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 36ae1a9..7ce60db 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -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 |