bfin: allow ".=.+delta"

BFIN has lots of instructions that contain "=", so "sym = expression"
is disabled for that target.  This makes an exception for assignment
to dot, fixing the recent regression of ld-scripts/pr18963.

	* config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
This commit is contained in:
Alan Modra 2020-04-17 12:38:19 +09:30
parent 8d55d10ac0
commit 49af2f5c83
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2020-04-17 Alan Modra <amodra@gmail.com>
* config/tc-bfin.h (TC_EQUAL_IN_INSN): Allow assignment to dot.
2020-04-16 Gagan Singh Sidhu <broly@mac.com>
Nick Clifton <nickc@redhat.com>

View File

@ -50,7 +50,7 @@ extern bfd_boolean bfin_start_label (char *);
extern bfd_boolean bfin_eol_in_insn (char *);
/* Almost all instructions of Blackfin contain an = character. */
#define TC_EQUAL_IN_INSN(C, NAME) 1
#define TC_EQUAL_IN_INSN(C, NAME) (NAME[0] != '.' || NAME[1] != 0)
#define NOP_OPCODE 0x0000