This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PowerPC warning on symbol+offset@got


	* config/tc-ppc.c (ppc_elf_suffix): Display the relocation
	operator on GOT reloc warnings/errors.

diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 7d6459aa26..042c95b188 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;
 	      }
 	  }

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]