aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-05 15:50:35 +0930
committerAlan Modra <amodra@gmail.com>2019-09-05 15:50:35 +0930
commite47d413a2c8a8710eaff12510bab64d128930d7c (patch)
tree92211112993564fd714dc86f6c63cc29d221116e /gas
parent133a1f6041bc131afcb39bf1a124d8e0fc5547ea (diff)
downloadgdb-e47d413a2c8a8710eaff12510bab64d128930d7c.zip
gdb-e47d413a2c8a8710eaff12510bab64d128930d7c.tar.gz
gdb-e47d413a2c8a8710eaff12510bab64d128930d7c.tar.bz2
PowerPC warning on symbol+offset@got
* config/tc-ppc.c (ppc_elf_suffix): Display the relocation operator on GOT reloc warnings/errors.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 980d970..06b7cfd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-05 Alan Modra <amodra@gmail.com>
+
+ * config/tc-ppc.c (ppc_elf_suffix): Display the relocation
+ operator on GOT reloc warnings/errors.
+
2019-08-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
* config/tc-arm.c (parse_neon_mov): Add check to accept vector
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 7d6459a..042c95b 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -2267,8 +2267,8 @@ ppc_elf_suffix (char **str_p, expressionS *exp_p)
case BFD_RELOC_LO16_GOTOFF:
case BFD_RELOC_HI16_GOTOFF:
case BFD_RELOC_HI16_S_GOTOFF:
- as_warn (_("identifier+constant@got means "
- "identifier@got+constant"));
+ as_warn (_("symbol+offset@%s means symbol@%s+offset"),
+ ptr->string, ptr->string);
break;
case BFD_RELOC_PPC_GOT_TLSGD16:
@@ -2287,7 +2287,7 @@ ppc_elf_suffix (char **str_p, expressionS *exp_p)
case BFD_RELOC_PPC_GOT_TPREL16_LO:
case BFD_RELOC_PPC_GOT_TPREL16_HI:
case BFD_RELOC_PPC_GOT_TPREL16_HA:
- as_bad (_("symbol+offset not supported for got tls"));
+ as_bad (_("symbol+offset@%s not supported"), ptr->string);
break;
}
}