diff options
author | David Daney <ddaney@avtrex.com> | 2006-11-07 23:55:36 +0000 |
---|---|---|
committer | David Daney <ddaney@avtrex.com> | 2006-11-07 23:55:36 +0000 |
commit | df1f3cdab5f2617dd1249fe7b8e6b82e9df93f8b (patch) | |
tree | 1632ff156e8b6dc86436201de636b19f3a1501c1 /gas/config/tc-mips.c | |
parent | 3181e5dc7ca0e8d90e6a4cf9203cb1bdc1a1a478 (diff) | |
download | gdb-df1f3cdab5f2617dd1249fe7b8e6b82e9df93f8b.zip gdb-df1f3cdab5f2617dd1249fe7b8e6b82e9df93f8b.tar.gz gdb-df1f3cdab5f2617dd1249fe7b8e6b82e9df93f8b.tar.bz2 |
gas:
* config/tc-mips.c (pic_need_relax): Return true for section symbols.
gas/testsuite:
* gas/mips/elf-rel26.s: New test.
* gas/mips/elf-rel26.d: Ditto.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index d3ed818..8b36f26 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -13153,6 +13153,9 @@ pic_need_relax (symbolS *sym, asection *segtype) sym = n; } + if (symbol_section_p (sym)) + return TRUE; + symsec = S_GET_SEGMENT (sym); /* This must duplicate the test in adjust_reloc_syms. */ |