aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2003-07-09 01:27:30 +0000
committerChris Demetriou <cgd@google.com>2003-07-09 01:27:30 +0000
commit115695a81d0bdf18ff318951cdddfa6153782268 (patch)
tree6fc02428fa5e85027cb6a92f3a1eab18a26adeaf /gas/config
parent6a18135f6a93eb8be003dfa19133e65d5fa2d161 (diff)
downloadgdb-115695a81d0bdf18ff318951cdddfa6153782268.zip
gdb-115695a81d0bdf18ff318951cdddfa6153782268.tar.gz
gdb-115695a81d0bdf18ff318951cdddfa6153782268.tar.bz2
[ gas/ChangeLog ]
2003-07-08 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (mips_validate_fix): Do not warn about branch target being a global symbol if not compiling SVR4 PIC code. [ gas/testsuite/ChangeLog ] 2003-07-08 Chris Demetriou <cgd@broadcom.com> * gas/testsuite/gas/mips/mips.exp: Make sure that branch-misc-2 is run to compile non-PIC code, and add branch-misc-2pic. * gas/mips/branch-misc-2.l: Adjust for change in non-PIC warnings. * gas/mips/branch-misc-2pic.l: New file. * gas/mips/branch-misc-2pic.s: New file.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index b66aae4..0aef575 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -11059,8 +11059,9 @@ mips_validate_fix (struct fix *fixP, asection *seg)
{
symbolS *sym = fixP->fx_addsy;
- as_warn_where (fixP->fx_file, fixP->fx_line,
- _("Pretending global symbol used as branch target is local."));
+ if (mips_pic == SVR4_PIC)
+ as_warn_where (fixP->fx_file, fixP->fx_line,
+ _("Pretending global symbol used as branch target is local."));
fixP->fx_addsy = symbol_create (S_GET_NAME (sym),
S_GET_SEGMENT (sym),