aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-w65.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-19 16:14:49 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-19 16:14:49 +0000
commit5f8cb05eef130cf997c98010ece37f102e9c6d35 (patch)
tree7e87d903d3bd781dbd0eb1d55f33feff4770012c /gas/config/tc-w65.c
parent4596bc7a868d1c11ec9b836f8420d3d0c38272c2 (diff)
downloadgdb-5f8cb05eef130cf997c98010ece37f102e9c6d35.zip
gdb-5f8cb05eef130cf997c98010ece37f102e9c6d35.tar.gz
gdb-5f8cb05eef130cf997c98010ece37f102e9c6d35.tar.bz2
* config/tc-sh.c (sh_relax): Rename from relax, and make global.
Renamed all uses. (insert): Pass a size of 2, not 4. (build_relax): Remove unused len variable. (md_show_usage): Mention -little option. (md_convert_frag): Add segT argument. Rewrite to generate relocs rather than to generate complete instructions here. (md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for changes in insert and md_pcrel_from. Add cases for R_SH_PCDISP and R_SH_PCDISP8BY2. (md_pcrel_from): Don't subtract 1, add 2. (tc_coff_fix2rtype): Remove. (sh_coff_reloc_mangle): New function. * config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type. (sh_relax): Declare. (TC_COUNT_RELOC): If relaxing, count PC relative relocs. (TC_RELOC_MANGLE): Define. (sh_coff_reloc_mangle): Declare. (tc_coff_sizemachdep): Declare. * tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER declaration. * write.c (cvt_frag_to_fill): Add sec argument to non BFD_ASSEMBLER version. Pass it to md_convert_frag. (write_object_file): Pass SEG_TEXT to cvs_frag_to_fill. * config/obj-coff.c (do_relocs_for): Pass segment info to TC_RELOC_MANGLE. (fixup_mdeps): Pass segment type to md_convert_frag. * config/tc-a29k.c (md_convert_frag): Add segT argument. * config/tc-h8300.c (md_convert_frag): Likewise. * config/tc-h8500.c (md_convert_frag): Likewise. * config/tc-i386.c (md_convert_frag): Likewise. * config/tc-i860.c (md_convert_frag): Likewise. * config/tc-i960.c (md_convert_frag): Likewise. * config/tc-m68k.c (md_convert_frag): Likewise. * config/tc-m88k.h (md_convert_frag): Likewise. * config/tc-ns32k.c (md_convert_frag): Likewise. * config/tc-rce.c (md_convert_frag): Likewise. * config/tc-tahoe.c (md_convert_frag): Likewise. * config/tc-vax.c (md_convert_frag): Likewise. * config/tc-w65.c (md_convert_frag): Likewise. * config/tc-z8k.c (md_convert_frag): Likewise. * config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument. * config/tc-h8500.h (TC_RELOC_MANGLE): Likewise. * config/tc-rce.h (TC_RELOC_MANGLE): Likewise. * config/tc-w65.h (TC_RELOC_MANGLE): Likewise. * config/tc-z8k.h (TC_RELOC_MANGLE): Likewise.
Diffstat (limited to 'gas/config/tc-w65.c')
-rw-r--r--gas/config/tc-w65.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-w65.c b/gas/config/tc-w65.c
index ef3f863..d62e185 100644
--- a/gas/config/tc-w65.c
+++ b/gas/config/tc-w65.c
@@ -912,10 +912,10 @@ md_create_long_jump (ptr, from_Nddr, to_Nddr, frag, to_symbol)
called after relaxing, change the frags so they know how big they are
*/
void
-md_convert_frag (headers, fragP)
+md_convert_frag (headers, seg, fragP)
object_headers *headers;
+ segT seg;
fragS *fragP;
-
{
int disp_size = 0;
int inst_size = 0;