Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/gas/config Warn about using a sy...
details: https://anonhg.NetBSD.org/src/rev/38fa4afffb39
branches: trunk
changeset: 780243:38fa4afffb39
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 17 20:29:44 2012 +0000
description:
Warn about using a symbol as a displacement in PIC mode.
diffstat:
external/gpl3/binutils/dist/gas/config/tc-vax.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 63abce30bab1 -r 38fa4afffb39 external/gpl3/binutils/dist/gas/config/tc-vax.c
--- a/external/gpl3/binutils/dist/gas/config/tc-vax.c Tue Jul 17 18:08:20 2012 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-vax.c Tue Jul 17 20:29:44 2012 +0000
@@ -3301,7 +3301,7 @@
if (flag_want_pic && operandP->vop_mode == 8
&& this_add_symbol != NULL)
{
- as_warn (_("Symbol %s used as immediate operand in PIC mode."),
+ as_warn (_("Symbol '%s' used as immediate operand in PIC mode."),
S_GET_NAME (this_add_symbol));
}
#endif
@@ -3377,7 +3377,15 @@
length = 4;
}
}
+#ifdef OBJ_ELF
+ if (flag_want_pic && this_add_symbol != NULL)
+ {
+ as_warn (_("Symbol '%s' used as displacement in PIC mode."),
+ S_GET_NAME (this_add_symbol));
+ }
+#endif
p = frag_more (1 + length);
+ know (operandP->vop_reg != 0xf);
know (operandP->vop_reg >= 0);
p[0] = operandP->vop_reg
| ((at | "?\12\14?\16"[length]) << 4);
Home |
Main Index |
Thread Index |
Old Index