This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Unify messages in coff-alpha and coff-mips
- From: Philipp Thomas <pthomas at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Fri, 25 Jan 2002 12:53:13 +0100
- Subject: [PATCH] Unify messages in coff-alpha and coff-mips
coff-alpha used two slightly different messages when GP relative relocation
without defined GP was found. This patch makes coff-alpha use the same
message throughout and also makes coff-mips use the same message.
This eases translation a bit as identical messages get only one catalog
entry and thus only one message needs to be translated.
Again, this needs to get checked in by somebody with write access when
approved, as I don't have one.
2002-01-25 Philipp Thomas <pthomas@suse.de>
* coff-alpha.c (alpha_relocate_section): Unify warning message
for GP relative relocations without GP defined.
* coff-mips.c (mips_relocate_section): Likewise.
Index: coff-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-alpha.c,v
retrieving revision 1.13
diff -u -p -r1.13 coff-alpha.c
--- coff-alpha.c 2001/09/18 09:57:21 1.13
+++ coff-alpha.c 2002/01/25 11:39:54
@@ -1986,7 +1986,7 @@ alpha_relocate_section (output_bfd, info
if (gp_usedp && gp_undefined)
{
if (! ((*info->callbacks->reloc_dangerous)
- (info, _("GP relative relocation when GP not defined"),
+ (info, _("GP relative relocation used when GP not defined"),
input_bfd, input_section, r_vaddr - input_section->vma)))
return false;
/* Only give the error once per link. */
Index: coff-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-mips.c,v
retrieving revision 1.14
diff -u -p -r1.14 coff-mips.c
--- coff-mips.c 2001/12/02 13:14:48 1.14
+++ coff-mips.c 2002/01/25 11:39:55
@@ -1430,7 +1430,7 @@ mips_relocate_section (output_bfd, info,
if (gp_undefined)
{
if (! ((*info->callbacks->reloc_dangerous)
- (info, _("GP relative relocation when GP not defined"),
+ (info, _("GP relative relocation used when GP not defined"),
input_bfd, input_section,
int_rel.r_vaddr - input_section->vma)))
return false;
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany
Penguins shall save the dinosaurs
-- Handelsblatt about Linux on S/390