Report invalid TLS operator, instead of relocation.
PR gas/28595
* config/tc-i386.c (gotrel): Replace int with unsigned int.
(i386_assemble): Report invalid TLS operator.
* testsuite/gas/i386/inval-tls.l: updated.
* testsuite/gas/i386/x86-64-inval-tls.l: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
static const struct
{
const char *str;
- int len;
+ unsigned int len;
const enum bfd_reloc_code_real rel[2];
const i386_operand_type types64;
bool need_GOT_symbol;
{
if (gotrel[k].rel[object_64bit] == i.reloc[j])
{
- as_bad (_("%s relocation cannot be used with `%s'"),
+ as_bad (_("@%s operator cannot be used with `%s'"),
gotrel[k].str, insn_name (&i.tm));
return;
}
.*: Assembler messages:
-.*:3: Error: GOTNTPOFF relocation cannot be used with `kmovd'
+.*:3: Error: @GOTNTPOFF operator cannot be used with `kmovd'
.*: Assembler messages:
-.*:3: Error: GOTTPOFF relocation cannot be used with `kmovq'
-.*:4: Error: TLSLD relocation cannot be used with `kmovq'
+.*:3: Error: @GOTTPOFF operator cannot be used with `kmovq'
+.*:4: Error: @TLSLD operator cannot be used with `kmovq'