1 /* tc-z8k.c -- Assemble code for the Zilog Z800n
2 Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 Written By Steve Chamberlain
28 #include "opcodes/z8k-opc.h"
34 const char comment_chars
[] = "!";
35 const char line_comment_chars
[] = "#";
36 const char line_separator_chars
[] = ";";
39 extern int coff_flags
;
41 const int md_reloc_size
;
43 /* This table describes all the machine specific pseudo-ops the assembler
44 has to support. The fields are:
45 pseudo-op name without dot
46 function to call to execute this pseudo-op
47 Integer arg to pass to the function
56 machine
= bfd_mach_z8001
;
64 machine
= bfd_mach_z8002
;
73 record_alignment (now_seg
, 1);
76 void obj_coff_section ();
94 if (*input_line_pointer
== '\'')
98 c
= *input_line_pointer
++;
103 c
= (tohex (input_line_pointer
[0]) << 4)
104 | tohex (input_line_pointer
[1]);
105 input_line_pointer
+= 2;
107 FRAG_APPEND_1_CHAR (c
);
108 c
= *input_line_pointer
++;
110 demand_empty_rest_of_line ();
114 const pseudo_typeS md_pseudo_table
[] =
120 {"form", listing_psize
, 0},
121 {"heading", listing_title
, 0},
122 {"import", s_ignore
, 0},
123 {"page", listing_eject
, 0},
124 {"program", s_ignore
, 0},
125 {"z8001", s_segm
, 0},
126 {"z8002", s_unseg
, 0},
130 {"unsegm", s_unseg
, 0},
131 {"unseg", s_unseg
, 0},
132 {"name", s_app_file
, 0},
133 {"global", s_globl
, 0},
138 {"rsect", obj_coff_section
, 0},
139 {"sect", obj_coff_section
, 0},
140 {"block", s_space
, 0},
145 const char EXP_CHARS
[] = "eE";
147 /* Chars that mean this number is a floating point constant */
150 const char FLT_CHARS
[] = "rRsSfFdDxXpP";
152 static struct hash_control
*opcode_hash_control
; /* Opcode mnemonics */
157 opcode_entry_type
*opcode
;
158 char *prev_name
= "";
161 opcode_hash_control
= hash_new ();
163 for (opcode
= z8k_table
; opcode
->name
; opcode
++)
165 /* Only enter unique codes into the table */
166 char *src
= opcode
->name
;
168 if (strcmp (opcode
->name
, prev_name
))
170 hash_insert (opcode_hash_control
, opcode
->name
, (char *) opcode
);
174 prev_name
= opcode
->name
;
177 /* default to z8002 */
180 /* insert the pseudo ops too */
181 for (idx
= 0; md_pseudo_table
[idx
].poc_name
; idx
++)
183 opcode_entry_type
*fake_opcode
;
184 fake_opcode
= (opcode_entry_type
*) malloc (sizeof (opcode_entry_type
));
185 fake_opcode
->name
= md_pseudo_table
[idx
].poc_name
,
186 fake_opcode
->func
= (void *) (md_pseudo_table
+ idx
);
187 fake_opcode
->opcode
= 250;
188 hash_insert (opcode_hash_control
, fake_opcode
->name
, fake_opcode
);
200 typedef struct z8k_op
202 char regsize
; /* 'b','w','r','q' */
203 unsigned int reg
; /* 0..15 */
207 unsigned int x_reg
; /* any other register associated with the mode */
208 expressionS exp
; /* any expression */
213 static expressionS
*da_operand
;
214 static expressionS
*imm_operand
;
223 DEFUN (whatreg
, (reg
, src
),
227 if (isdigit (src
[1]))
229 *reg
= (src
[0] - '0') * 10 + src
[1] - '0';
234 *reg
= (src
[0] - '0');
246 WREG r0,r1,r2,r3,r4,r5,r6,r7,fp,sp
255 /* try and parse a reg name, returns number of chars consumed */
257 DEFUN (parse_reg
, (src
, mode
, reg
),
265 if (src
[0] == 's' && src
[1] == 'p')
269 *mode
= CLASS_REG_LONG
;
274 *mode
= CLASS_REG_WORD
;
283 *mode
= CLASS_REG_LONG
;
284 res
= whatreg (reg
, src
+ 2);
287 as_warn (_("register rr%d, out of range."),regno
);
289 else if (src
[1] == 'h')
291 *mode
= CLASS_REG_BYTE
;
292 res
= whatreg (reg
, src
+ 2);
295 as_warn (_("register rh%d, out of range."),regno
);
297 else if (src
[1] == 'l')
299 *mode
= CLASS_REG_BYTE
;
300 res
= whatreg (reg
, src
+ 2);
303 as_warn (_("register rl%d, out of range."),regno
);
306 else if (src
[1] == 'q')
308 *mode
= CLASS_REG_QUAD
;
309 res
= whatreg (reg
, src
+ 2);
312 as_warn (_("register rq%d, out of range."),regno
);
316 *mode
= CLASS_REG_WORD
;
317 res
= whatreg (reg
, src
+ 1);
320 as_warn (_("register r%d, out of range."),regno
);
328 DEFUN (parse_exp
, (s
, op
),
332 char *save
= input_line_pointer
;
335 input_line_pointer
= s
;
337 if (op
->X_op
== O_absent
)
338 as_bad (_("missing operand"));
339 new = input_line_pointer
;
340 input_line_pointer
= save
;
344 /* The many forms of operand:
363 DEFUN (checkfor
, (ptr
, what
),
371 as_bad (_("expected %c"), what
);
376 /* Make sure the mode supplied is the size of a word */
378 DEFUN (regword
, (mode
, string
),
387 as_bad (_("register is wrong size for a word %s"), string
);
391 /* Make sure the mode supplied is the size of an address */
393 DEFUN (regaddr
, (mode
, string
),
399 ok
= segmented_mode
? CLASS_REG_LONG
: CLASS_REG_WORD
;
402 as_bad (_("register is wrong size for address %s"), string
);
412 struct ctrl_names ctrl_table
[] =
426 DEFUN (get_ctrl_operand
, (ptr
, mode
, dst
),
428 struct z8k_op
*mode AND
438 mode
->mode
= CLASS_CTRL
;
439 for (i
= 0; ctrl_table
[i
].name
; i
++)
443 for (j
= 0; ctrl_table
[i
].name
[j
]; j
++)
445 if (ctrl_table
[i
].name
[j
] != src
[j
])
448 the_ctrl
= ctrl_table
[i
].value
;
464 struct flag_names flag_table
[] =
476 DEFUN (get_flags_operand
, (ptr
, mode
, dst
),
478 struct z8k_op
*mode AND
489 mode
->mode
= CLASS_FLAGS
;
491 for (j
= 0; j
<= 9; j
++)
495 for (i
= 0; flag_table
[i
].name
; i
++)
497 if (flag_table
[i
].name
[0] == src
[j
])
499 the_flags
= the_flags
| flag_table
[i
].value
;
513 struct interrupt_names
520 struct interrupt_names intr_table
[] =
530 DEFUN (get_interrupt_operand
, (ptr
, mode
, dst
),
532 struct z8k_op
*mode AND
542 mode
->mode
= CLASS_IMM
;
543 for (i
= 0; intr_table
[i
].name
; i
++)
547 for (j
= 0; intr_table
[i
].name
[j
]; j
++)
549 if (intr_table
[i
].name
[j
] != src
[j
])
552 the_interrupt
= intr_table
[i
].value
;
568 struct cc_names table
[] =
596 DEFUN (get_cc_operand
, (ptr
, mode
, dst
),
598 struct z8k_op
*mode AND
608 mode
->mode
= CLASS_CC
;
609 for (i
= 0; table
[i
].name
; i
++)
613 for (j
= 0; table
[i
].name
[j
]; j
++)
615 if (table
[i
].name
[j
] != src
[j
])
618 the_cc
= table
[i
].value
;
627 get_operand (ptr
, mode
, dst
)
644 mode
->mode
= CLASS_IMM
;
645 imm_operand
= &(mode
->exp
);
646 src
= parse_exp (src
+ 1, &(mode
->exp
));
648 else if (*src
== '@')
652 mode
->mode
= CLASS_IR
;
653 src
= parse_reg (src
+ 1, &d
, &mode
->reg
);
659 end
= parse_reg (src
, &mode
->mode
, ®n
);
669 end
= parse_reg (src
, &nw
, &nr
);
677 as_bad (_("Missing ) in ra(rb)"));
684 regaddr (mode
->mode
, "ra(rb) ra");
685 /* regword (mode->mode, "ra(rb) rb");*/
686 mode
->mode
= CLASS_BX
;
696 src
= parse_exp (src
, &(mode
->exp
));
697 src
= checkfor (src
, ')');
698 mode
->mode
= CLASS_BA
;
701 imm_operand
= &(mode
->exp
);
713 src
= parse_exp (src
, &(mode
->exp
));
717 end
= parse_reg (src
, &(mode
->mode
), ®n
);
718 regword (mode
->mode
, "addr(Ra) ra");
719 mode
->mode
= CLASS_X
;
722 da_operand
= &(mode
->exp
);
723 src
= checkfor (end
, ')');
727 /* Just an address */
728 mode
->mode
= CLASS_DA
;
731 da_operand
= &(mode
->exp
);
740 get_operands (opcode
, op_end
, operand
)
741 opcode_entry_type
*opcode
;
747 switch (opcode
->noperands
)
756 if (opcode
->arg_info
[0] == CLASS_CC
)
758 get_cc_operand (&ptr
, operand
+ 0, 0);
760 else if (opcode
->arg_info
[0] == CLASS_FLAGS
)
762 get_flags_operand (&ptr
, operand
+ 0, 0);
764 else if (opcode
->arg_info
[0] == (CLASS_IMM
+(ARG_IMM2
)))
766 get_interrupt_operand (&ptr
, operand
+ 0, 0);
770 get_operand (&ptr
, operand
+ 0, 0);
778 if (opcode
->arg_info
[0] == CLASS_CC
)
780 get_cc_operand (&ptr
, operand
+ 0, 0);
782 else if (opcode
->arg_info
[0] == CLASS_CTRL
)
784 get_ctrl_operand (&ptr
, operand
+ 0, 0);
788 get_operand (&ptr
, operand
+ 0, 0);
793 get_ctrl_operand (&ptr
, operand
+ 1, 1);
799 get_operand (&ptr
, operand
+ 0, 0);
805 get_operand (&ptr
, operand
+ 1, 1);
810 get_operand (&ptr
, operand
+ 0, 0);
813 get_operand (&ptr
, operand
+ 1, 1);
816 get_operand (&ptr
, operand
+ 2, 2);
821 get_operand (&ptr
, operand
+ 0, 0);
824 get_operand (&ptr
, operand
+ 1, 1);
827 get_operand (&ptr
, operand
+ 2, 2);
830 get_cc_operand (&ptr
, operand
+ 3, 3);
839 /* Passed a pointer to a list of opcodes which use different
840 addressing modes, return the opcode which matches the opcodes
846 DEFUN (get_specific
, (opcode
, operands
),
847 opcode_entry_type
* opcode AND
851 opcode_entry_type
*this_try
= opcode
;
853 unsigned int noperands
= opcode
->noperands
;
855 unsigned int dispreg
;
856 unsigned int this_index
= opcode
->idx
;
858 while (this_index
== opcode
->idx
&& !found
)
863 for (i
= 0; i
< noperands
; i
++)
865 int mode
= operands
[i
].mode
;
867 if ((mode
& CLASS_MASK
) != (this_try
->arg_info
[i
] & CLASS_MASK
))
869 /* it could be an pc rel operand, if this is a da mode and
870 we like disps, then insert it */
872 if (mode
== CLASS_DA
&& this_try
->arg_info
[i
] == CLASS_DISP
)
874 /* This is the case */
875 operands
[i
].mode
= CLASS_DISP
;
877 else if (mode
== CLASS_BA
&& this_try
->arg_info
[i
])
879 /* Can't think of a way to turn what we've been given into
880 something that's ok */
883 else if (this_try
->arg_info
[i
] & CLASS_PR
)
885 if (mode
== CLASS_REG_LONG
&& segmented_mode
)
889 else if (mode
== CLASS_REG_WORD
&& !segmented_mode
)
899 switch (mode
& CLASS_MASK
)
914 reg
[this_try
->arg_info
[i
] & ARG_MASK
] = operands
[i
].reg
;
929 DEFUN (check_operand
, (operand
, width
, string
),
930 struct z8k_op
*operand AND
931 unsigned int width AND
934 if (operand
->exp
.X_add_symbol
== 0
935 && operand
->exp
.X_op_symbol
== 0)
938 /* No symbol involved, let's look at offset, it's dangerous if any of
939 the high bits are not 0 or ff's, find out by oring or anding with
940 the width and seeing if the answer is 0 or all fs*/
941 if ((operand
->exp
.X_add_number
& ~width
) != 0 &&
942 (operand
->exp
.X_add_number
| width
) != (~0))
944 as_warn (_("operand %s0x%x out of range."), string
, operand
->exp
.X_add_number
);
950 static char buffer
[20];
953 DEFUN (newfix
, (ptr
, type
, operand
),
956 expressionS
* operand
)
958 if (operand
->X_add_symbol
959 || operand
->X_op_symbol
960 || operand
->X_add_number
)
962 fix_new_exp (frag_now
,
972 DEFUN (apply_fix
, (ptr
, type
, operand
, size
),
975 expressionS
* operand AND
978 int n
= operand
->X_add_number
;
980 operand
->X_add_number
= n
;
981 newfix ((ptr
- buffer
) / 2, type
, operand
);
985 case 8: /* 8 nibbles == 32 bits */
990 case 4: /* 4 niblles == 16 bits */
1004 /* Now we know what sort of opcodes it is, lets build the bytes -
1006 #define INSERT(x,y) *x++ = y>>24; *x++ = y>> 16; *x++=y>>8; *x++ =y;
1008 build_bytes (this_try
, operand
)
1009 opcode_entry_type
* this_try
;
1010 struct z8k_op
*operand
;
1016 char *output_ptr
= buffer
;
1022 unsigned int *class_ptr
;
1024 frag_wane (frag_now
);
1027 memset (buffer
, 20, 0);
1028 class_ptr
= this_try
->byte_info
;
1031 for (nibble
= 0; c
= *class_ptr
++; nibble
++)
1034 switch (c
& CLASS_MASK
)
1040 /* Direct address, we don't cope with the SS mode right now */
1043 da_operand
->X_add_number
|= 0x80000000;
1044 output_ptr
= apply_fix (output_ptr
, R_IMM32
, da_operand
, 8);
1048 output_ptr
= apply_fix (output_ptr
, R_IMM16
, da_operand
, 4);
1054 output_ptr
= apply_fix (output_ptr
, R_JR
, da_operand
, 2);
1061 output_ptr
= apply_fix (output_ptr
, R_DISP7
, da_operand
, 2);
1068 output_ptr
= apply_fix (output_ptr
, R_DISP7
, da_operand
, 2);
1069 output_ptr
[-2] = 0x8;
1073 case CLASS_BIT_1OR2
:
1074 *output_ptr
= c
& 0xf;
1077 if (imm_operand
->X_add_number
== 2)
1081 else if (imm_operand
->X_add_number
!= 1)
1083 as_bad (_("immediate must be 1 or 2"));
1088 as_bad (_("immediate 1 or 2 expected"));
1093 *output_ptr
++ = the_cc
;
1096 *output_ptr
++ = the_ctrl
;
1099 *output_ptr
++ = the_ctrl
| 0x8;
1102 *output_ptr
++ = (~the_interrupt
& 0x3);
1105 *output_ptr
++ = (~the_interrupt
& 0x3) | 0x4;
1108 *output_ptr
++ = the_flags
;
1111 *output_ptr
++ = c
& 0xf;
1114 if (reg
[c
& 0xf] == 0)
1116 as_bad (_("can't use R0 here"));
1119 case CLASS_REG_BYTE
:
1120 case CLASS_REG_WORD
:
1121 case CLASS_REG_LONG
:
1122 case CLASS_REG_QUAD
:
1123 /* Insert bit mattern of
1125 *output_ptr
++ = reg
[c
& 0xf];
1128 output_ptr
= apply_fix (output_ptr
, R_IMM16
, da_operand
, 4);
1135 switch (c
& ARG_MASK
)
1138 output_ptr
= apply_fix (output_ptr
, R_IMM4L
, imm_operand
, 1);
1141 imm_operand
->X_add_number
--;
1142 output_ptr
= apply_fix (output_ptr
, R_IMM4L
, imm_operand
, 1);
1144 case ARG_IMMNMINUS1
:
1145 imm_operand
->X_add_number
--;
1146 output_ptr
= apply_fix (output_ptr
, R_IMM4L
, imm_operand
, 1);
1149 imm_operand
->X_add_number
= -imm_operand
->X_add_number
;
1151 output_ptr
= apply_fix (output_ptr
, R_IMM8
, imm_operand
, 2);
1154 output_ptr
= apply_fix (output_ptr
, R_IMM16
, imm_operand
, 4);
1158 output_ptr
= apply_fix (output_ptr
, R_IMM32
, imm_operand
, 8);
1168 /* Copy from the nibble buffer into the frag */
1171 int length
= (output_ptr
- buffer
) / 2;
1173 char *fragp
= frag_more (length
);
1175 while (src
< output_ptr
)
1177 *fragp
= (src
[0] << 4) | src
[1];
1186 /* This is the guts of the machine-dependent assembler. STR points to a
1187 machine dependent instruction. This funciton is supposed to emit
1188 the frags/bytes it assembles to.
1192 DEFUN (md_assemble
, (str
),
1198 struct z8k_op operand
[3];
1199 opcode_entry_type
*opcode
;
1200 opcode_entry_type
*prev_opcode
;
1205 /* Drop leading whitespace */
1209 /* find the op code end */
1210 for (op_start
= op_end
= str
;
1211 *op_end
!= 0 && *op_end
!= ' ';
1218 if (op_end
== op_start
)
1220 as_bad (_("can't find opcode "));
1226 opcode
= (opcode_entry_type
*) hash_find (opcode_hash_control
,
1232 as_bad (_("unknown opcode"));
1236 if (opcode
->opcode
== 250)
1238 /* was really a pseudo op */
1243 char *old
= input_line_pointer
;
1247 input_line_pointer
= op_end
;
1251 while (*input_line_pointer
== ' ')
1252 input_line_pointer
++;
1253 p
= (pseudo_typeS
*) (opcode
->func
);
1255 (p
->poc_handler
) (p
->poc_val
);
1256 input_line_pointer
= old
;
1261 input_line_pointer
= get_operands (opcode
, op_end
,
1263 prev_opcode
= opcode
;
1265 opcode
= get_specific (opcode
, operand
);
1269 /* Couldn't find an opcode which matched the operands */
1270 char *where
= frag_more (2);
1275 as_bad (_("Can't find opcode to match operands"));
1279 build_bytes (opcode
, operand
);
1284 DEFUN (tc_crawl_symbol_chain
, (headers
),
1285 object_headers
* headers
)
1287 printf (_("call to tc_crawl_symbol_chain \n"));
1291 DEFUN (md_undefined_symbol
, (name
),
1298 DEFUN (tc_headers_hook
, (headers
),
1299 object_headers
* headers
)
1301 printf (_("call to tc_headers_hook \n"));
1304 /* Various routines to kill one day */
1305 /* Equal to MAX_PRECISION in atof-ieee.c */
1306 #define MAX_LITTLENUMS 6
1308 /* Turn a string in input_line_pointer into a floating point constant of type
1309 type, and store the appropriate bytes in *litP. The number of LITTLENUMS
1310 emitted is stored in *sizeP . An error message is returned, or NULL on OK.
1313 md_atof (type
, litP
, sizeP
)
1319 LITTLENUM_TYPE words
[MAX_LITTLENUMS
];
1320 LITTLENUM_TYPE
*wordP
;
1352 return _("Bad call to MD_ATOF()");
1354 t
= atof_ieee (input_line_pointer
, type
, words
);
1356 input_line_pointer
= t
;
1358 *sizeP
= prec
* sizeof (LITTLENUM_TYPE
);
1359 for (wordP
= words
; prec
--;)
1361 md_number_to_chars (litP
, (long) (*wordP
++), sizeof (LITTLENUM_TYPE
));
1362 litP
+= sizeof (LITTLENUM_TYPE
);
1367 CONST
char *md_shortopts
= "z:";
1368 struct option md_longopts
[] = {
1369 {NULL
, no_argument
, NULL
, 0}
1371 size_t md_longopts_size
= sizeof(md_longopts
);
1374 md_parse_option (c
, arg
)
1381 if (!strcmp (arg
, "8001"))
1383 else if (!strcmp (arg
, "8002"))
1387 as_bad (_("invalid architecture -z%s"), arg
);
1400 md_show_usage (stream
)
1403 fprintf(stream
, _("\
1405 -z8001 generate segmented code\n\
1406 -z8002 generate unsegmented code\n"));
1410 tc_aout_fix_to_chars ()
1412 printf (_("call to tc_aout_fix_to_chars \n"));
1417 md_convert_frag (headers
, seg
, fragP
)
1418 object_headers
*headers
;
1422 printf (_("call to md_convert_frag \n"));
1427 DEFUN (md_section_align
, (seg
, size
),
1431 return ((size
+ (1 << section_alignment
[(int) seg
]) - 1) & (-1 << section_alignment
[(int) seg
]));
1436 md_apply_fix (fixP
, val
)
1440 char *buf
= fixP
->fx_where
+ fixP
->fx_frag
->fr_literal
;
1442 switch (fixP
->fx_r_type
)
1445 buf
[0] = (buf
[0] & 0xf0) | ((buf
[0] + val
) & 0xf);
1451 /* if (val != 0) abort();*/
1457 /* if (val != 0) abort();*/
1464 *buf
++ = (val
>> 8);
1468 *buf
++ = (val
>> 24);
1469 *buf
++ = (val
>> 16);
1470 *buf
++ = (val
>> 8);
1475 *buf
++ = (val
>> 16);
1477 *buf
++ = (val
>> 8);
1483 md_number_to_chars (buf
, val
, fixP
->fx_size
);
1493 md_estimate_size_before_relax (fragP
, segment_type
)
1494 register fragS
*fragP
;
1495 register segT segment_type
;
1497 printf (_("call tomd_estimate_size_before_relax \n"));
1501 /* Put number into target byte order */
1504 DEFUN (md_number_to_chars
, (ptr
, use
, nbytes
),
1509 number_to_chars_bigendian (ptr
, use
, nbytes
);
1512 md_pcrel_from (fixP
)
1519 tc_coff_symbol_emit_hook (s
)
1525 tc_reloc_mangle (fix_ptr
, intr
, base
)
1527 struct internal_reloc
*intr
;
1531 symbolS
*symbol_ptr
;
1533 if (fix_ptr
->fx_addsy
&&
1536 symbolS
*add
= fix_ptr
->fx_addsy
;
1537 symbolS
*sub
= fix_ptr
->fx_subsy
;
1538 if (S_GET_SEGMENT(add
) != S_GET_SEGMENT(sub
))
1540 as_bad(_("Can't subtract symbols in different sections %s %s"),
1541 S_GET_NAME(add
), S_GET_NAME(sub
));
1544 int diff
= S_GET_VALUE(add
) - S_GET_VALUE(sub
);
1545 fix_ptr
->fx_addsy
= 0;
1546 fix_ptr
->fx_subsy
= 0;
1547 fix_ptr
->fx_offset
+= diff
;
1550 symbol_ptr
= fix_ptr
->fx_addsy
;
1552 /* If this relocation is attached to a symbol then it's ok
1554 if (fix_ptr
->fx_r_type
== 0)
1556 /* cons likes to create reloc32's whatever the size of the reloc.. */
1557 switch (fix_ptr
->fx_size
)
1560 intr
->r_type
= R_IMM16
;
1563 intr
->r_type
= R_IMM8
;
1566 intr
->r_type
= R_IMM32
;
1575 intr
->r_type
= fix_ptr
->fx_r_type
;
1578 intr
->r_vaddr
= fix_ptr
->fx_frag
->fr_address
+ fix_ptr
->fx_where
+ base
;
1579 intr
->r_offset
= fix_ptr
->fx_offset
;
1582 intr
->r_symndx
= symbol_ptr
->sy_number
;
1584 intr
->r_symndx
= -1;