diff options
author | Nick Clifton <nickc@redhat.com> | 2002-02-04 16:27:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-02-04 16:27:22 +0000 |
commit | 25180f8aefdfb363742aa577363184fd2a43c0b6 (patch) | |
tree | 953e830d69ddc2425b1c51eafff4e864125f0926 /sim/arm | |
parent | fdf4122d8d23ba39cc3792c8ad3413fdf0bced59 (diff) | |
download | gdb-25180f8aefdfb363742aa577363184fd2a43c0b6.zip gdb-25180f8aefdfb363742aa577363184fd2a43c0b6.tar.gz gdb-25180f8aefdfb363742aa577363184fd2a43c0b6.tar.bz2 |
If a v5 architecture is detected, assume it might be an XScale binary, since
there is no way to distinguish between the two in the COFF file format.
Diffstat (limited to 'sim/arm')
-rw-r--r-- | sim/arm/ChangeLog | 6 | ||||
-rw-r--r-- | sim/arm/wrapper.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 3b954d0..fbfc595 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,9 @@ +2002-02-04 Nick Clifton <nickc@cambridge.redhat.com> + + * wrapper.c: If a v5 architecture is detected, assume it might be + an XScale binary, since there is no way to distinguish between + the two in the COFF file format. + 2002-01-10 Nick Clifton <nickc@cambridge.redhat.com> * arminit.c (ARMul_Abort): Fix parameters passed to CPRead[13]. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 524377d..c2fd8be 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -234,6 +234,15 @@ sim_create_inferior (sd, abfd, argv, env) break; case bfd_mach_arm_5: + /* This is a special case in order to support COFF based ARM toolchains. + The COFF header does not have enough room to store all the different + kinds of ARM cpu, so the XScale, v5T and v5TE architectures all default + to v5. (See coff_set_flags() in bdf/coffcode.h). So if we see a v5 + machine type here, we assume it could be any of the above architectures + and so select the most feature-full. */ + ARMul_SelectProcessor (state, ARM_v5_Prop | ARM_v5e_Prop | ARM_XScale_Prop); + break; + case bfd_mach_arm_5T: ARMul_SelectProcessor (state, ARM_v5_Prop); break; |