aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-09-23 11:14:27 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2012-09-23 11:14:27 +0000
commitb886a2ab0d52932b39118747c0c2c078f4e0f043 (patch)
treeee52fe9e423f13e0ca7ecee6af5b739949f99d54 /gas/config/tc-mips.h
parent335574df3c281b3c469ec272686694b41bad928b (diff)
downloadfsf-binutils-gdb-b886a2ab0d52932b39118747c0c2c078f4e0f043.zip
fsf-binutils-gdb-b886a2ab0d52932b39118747c0c2c078f4e0f043.tar.gz
fsf-binutils-gdb-b886a2ab0d52932b39118747c0c2c078f4e0f043.tar.bz2
gas/
* config/tc-mips.h (TC_FORCE_RELOCATION): Remove comment. * config/tc-mips.c (calculate_reloc): New function. (append_insn): Use it. Do not resolve compound relocations here. (mips16_macro_build, mips16_ip): Use calculate_reloc. (mips16_immed_extend): New function, split out from... (mips16_immed): ...here. (mips_frob_file): Handle null symbols. (mips_force_relocation): Remove NEWABI handling. (read_reloc_insn, write_reloc_insn): New functions. (md_apply_fix): Report TLS relocations against constants. Use read_reloc_insn, calculate_reloc and write_reloc_insn. Report relocations against constants that can't be resolved at assembly time. gas/testsuite/ * gas/mips/elf-rel22.s, gas/mips/elf-rel22.d: Add more tests. * gas/mips/elf-rel29.s, gas/mips/elf-rel29.d, gas/mips/micromips@elf-rel29.d, gas/mips/elf-rel30.s, gas/mips/elf-rel30.l: New tests. * gas/mips/mips.exp: Run them.
Diffstat (limited to 'gas/config/tc-mips.h')
-rw-r--r--gas/config/tc-mips.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index dc4c0a4..c7eaa04 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -137,8 +137,6 @@ extern int mips_fix_adjustable (struct fix *);
#define EXTERN_FORCE_RELOC \
(OUTPUT_FLAVOR == bfd_target_elf_flavour)
-/* When generating NEWABI code, we may need to have to keep combined
- relocations which don't have symbols. */
#define TC_FORCE_RELOCATION(FIX) mips_force_relocation (FIX)
extern int mips_force_relocation (struct fix *);