mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Fix .force_thumb
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
1999-11-29 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c (thumb_mode): Turn into a tristate variable.
|
||||||
|
(s_force_thumb): Set thumb_mode to 2.
|
||||||
|
(md_assemble): Do not complain about thumb instructions on a
|
||||||
|
non-thumb target if thumb_mode is set to 2.
|
||||||
|
|
||||||
1999-11-28 Michael Meissner <meissner@cygnus.com>
|
1999-11-28 Michael Meissner <meissner@cygnus.com>
|
||||||
|
|
||||||
* config/tc-alpha.c (toplevel): Include struc-symbol.h.
|
* config/tc-alpha.c (toplevel): Include struc-symbol.h.
|
||||||
|
@ -141,8 +141,9 @@ symbolS * GOT_symbol; /* Pre-defined "_GLOBAL_OFFSET_TABLE_" */
|
|||||||
|
|
||||||
CONST int md_reloc_size = 8; /* Size of relocation record */
|
CONST int md_reloc_size = 8; /* Size of relocation record */
|
||||||
|
|
||||||
static int thumb_mode = 0; /* non-zero if assembling thumb instructions */
|
static int thumb_mode = 0; /* 0: assemble for ARM, 1: assemble for Thumb,
|
||||||
|
2: assemble for Thumb even though target cpu
|
||||||
|
does not support thumb instructions */
|
||||||
typedef struct arm_fix
|
typedef struct arm_fix
|
||||||
{
|
{
|
||||||
int thumb_mode;
|
int thumb_mode;
|
||||||
@ -1260,7 +1261,7 @@ s_force_thumb (ignore)
|
|||||||
|
|
||||||
if (! thumb_mode)
|
if (! thumb_mode)
|
||||||
{
|
{
|
||||||
thumb_mode = 1;
|
thumb_mode = 2;
|
||||||
|
|
||||||
record_alignment (now_seg, 1);
|
record_alignment (now_seg, 1);
|
||||||
}
|
}
|
||||||
@ -6068,7 +6069,7 @@ md_assemble (str)
|
|||||||
if (opcode)
|
if (opcode)
|
||||||
{
|
{
|
||||||
/* Check that this instruction is supported for this CPU. */
|
/* Check that this instruction is supported for this CPU. */
|
||||||
if ((opcode->variants & cpu_variant) == 0)
|
if (thumb_mode == 1 && (opcode->variants & cpu_variant) == 0)
|
||||||
{
|
{
|
||||||
as_bad (_("selected processor does not support this opcode"));
|
as_bad (_("selected processor does not support this opcode"));
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user