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 /include | |
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 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/coff/ti.h | 8 | ||||
-rw-r--r-- | include/coff/tic4x.h | 6 |
3 files changed, 16 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 771808c..79cf42d 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2003-01-20 Svein E. Seldal <Svein.Seldal@solidas.com> + + * coff/tic4x.h (TICOFF_TARGET_MACHINE_GET): Fixed define bug + * coff/ti.h (TICOFF_TARGET_MACHINE_GET): Added macros + 2002-07-17 Geoffrey Keating <geoffk@redhat.com> * splay-tree.h (GTY): Define if undefined. diff --git a/include/coff/ti.h b/include/coff/ti.h index 0a59b22..8df1522 100644 --- a/include/coff/ti.h +++ b/include/coff/ti.h @@ -57,6 +57,14 @@ struct external_filehdr #error "TICOFF_TARGET_ARCH needs to be defined for your CPU" #endif +#ifndef TICOFF_TARGET_MACHINE_GET +#define TICOFF_TARGET_MACHINE_GET(FLAGS) 0 +#endif + +#ifndef TICOFF_TARGET_MACHINE_SET +#define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE) +#endif + /* Default to COFF2 for file output */ #ifndef TICOFF_DEFAULT_MAGIC #define TICOFF_DEFAULT_MAGIC TICOFF2MAGIC diff --git a/include/coff/tic4x.h b/include/coff/tic4x.h index 03215fb..083cc3b 100644 --- a/include/coff/tic4x.h +++ b/include/coff/tic4x.h @@ -30,14 +30,14 @@ /* We use COFF2. */ #define TICOFF_DEFAULT_MAGIC TICOFF2MAGIC -#define TICOFF_TARGET_MACHINE_GET (FLAGS) \ +#define TICOFF_TARGET_MACHINE_GET(FLAGS) \ (((FLAGS) & F_VERS) ? bfd_mach_c4x : bfd_mach_c3x) -#define TICOFF_TARGET_MACHINE_SET (FLAGSP, MACHINE) \ +#define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE) \ do \ { \ if ((MACHINE) == bfd_mach_c4x) \ - *(FLAGSP) = F_VERS; \ + *(FLAGSP) |= F_VERS; \ } \ while (0) |