4 * (C) Copyright 1989-1995
12 * - errdmp: show s_id as string rather than array [NCPS]
13 * - relr: add support for 11 bit 8051 addressing
14 * 02-Apr-98 JLH: don't output empty hex records
23 * The module lkrloc.c contains the functions which
24 * perform the relocation calculations.
26 * lkrloc.c contains the following functions:
45 * lkrloc.c the local variable errmsg[].
49 /* Global which holds the upper 16 bits of the last 32 bit area adress
50 * output. Useful only for iHex mode.
52 int lastExtendedAddress=-1;
54 /* Static variable which holds the index of last processed area.
55 * Useful only for iHex mode.
57 static int lastAreaIndex = -1;
59 /*)Function VOID reloc(c)
63 * The function reloc() calls a particular relocation
64 * function determined by the process code.
70 * int lkerr error flag
73 * int fprintf() c_library
74 * VOID rele() lkrloc.c
75 * VOID relp() lkrloc.c
76 * VOID relr() lkrloc.c
77 * VOId relt() lkrloc.c
80 * Refer to the called relocation functions.
107 fprintf(stderr, "Undefined Relocation Operation\n");
115 /*)Function VOID relt()
117 * The function relt() evaluates a T line read by
118 * the linker. Each byte value read is saved in the
119 * rtval[] array, rtflg[] is set, and the number of
120 * evaluations is maintained in rtcnt.
124 * T xx xx nn nn nn nn nn ...
127 * In: "T n0 n1 n2 n3 ... nn"
129 * Out: 0 1 2 .. rtcnt
130 * +----+----+----+----+----+
131 * rtval | n0 | n1 | n2 | .. | nn |
132 * +----+----+----+----+----+
133 * rtflag| 1 | 1 | 1 | 1 | 1 |
134 * +----+----+----+----+----+
136 * The T line contains the assembled code output by the assem-
137 * bler with xx xx being the offset address from the current area
138 * base address and nn being the assembled instructions and data in
145 * int rtcnt number of values evaluated
146 * int rtflg[] array of evaluation flags
147 * int rtval[] array of evaluation values
150 * int eval() lkeval.c
154 * Linker input T line evaluated.
164 rtval[rtcnt] = eval();
171 /*)Function VOID relr()
173 * The function relr() evaluates a R line read by
174 * the linker. The R line data is combined with the
175 * previous T line data to perform the relocation of
176 * code and data bytes. The S19 / IHX output and
177 * translation of the LST files to RST files may be
182 * R 0 0 nn nn n1 n2 xx xx ...
184 * The R line provides the relocation information to the linker.
185 * The nn nn value is the current area index, i.e. which area the
186 * current values were assembled. Relocation information is en-
187 * coded in groups of 4 bytes:
189 * 1. n1 is the relocation mode and object format
190 * 1. bit 0 word(0x00)/byte(0x01)
191 * 2. bit 1 relocatable area(0x00)/symbol(0x02)
192 * 3. bit 2 normal(0x00)/PC relative(0x04) relocation
193 * 4. bit 3 1-byte(0x00)/2-byte(0x08) object format for
195 * 5. bit 4 signed(0x00)/unsigned(0x10) byte data
196 * 6. bit 5 normal(0x00)/page '0'(0x20) reference
197 * 7. bit 6 normal(0x00)/page 'nnn'(0x40) reference
199 * 2. n2 is a byte index into the corresponding (i.e. pre-
200 * ceeding) T line data (i.e. a pointer to the data to be
201 * updated by the relocation). The T line data may be
202 * 1-byte or 2-byte byte data format or 2-byte word
205 * 3. xx xx is the area/symbol index for the area/symbol be-
206 * ing referenced. the corresponding area/symbol is found
207 * in the header area/symbol lists.
209 * The groups of 4 bytes are repeated for each item requiring relo-
210 * cation in the preceeding T line.
213 * areax **a pointer to array of area pointers
214 * int aindex area index
215 * char *errmsg[] array of pointers to error strings
216 * int error error code
217 * int lkerr error flag
218 * int mode relocation mode
219 * adrr_t paga paging base area address
220 * Addr_T pags paging symbol address
221 * Addr_T pc relocated base address
222 * Addr_T r PCR relocation value
223 * Addr_T reli relocation initial value
224 * Addr_T relv relocation final value
225 * int rindex symbol / area index
226 * Addr_T rtbase base code address
227 * Addr_T rtofst rtval[] index offset
228 * int rtp index into T data
229 * sym **s pointer to array of symbol pointers
232 * head *hp pointer to the head structure
233 * rerr rerr linker error structure
234 * FILE *stderr standard error device
237 * Addr_T adb_b() lkrloc.c
238 * Addr_T adb_lo() lkrloc.c
239 * Addr_T adb_hi() lkrloc.c
240 * Addr_T adw_w() lkrloc.c
242 * Addr_T evword() lkrloc.c
243 * int eval() lkeval.c
244 * int fprintf() c_library
246 * int lkulist lklist.c
248 * VOID relerr() lkrloc.c
250 * int symval() lksym.c
253 * The R and T lines are combined to produce
254 * relocated code and data. Output S19 / IHX
255 * and relocated listing files may be produced.
263 register Addr_T reli, relv;
264 int aindex, rindex, rtp, error;
265 Addr_T r, rtbase, rtofst, paga, pags, pc;
270 * Get area and symbol lists
278 if (eval() != (R_WORD | R_AREA) || eval()) {
279 fprintf(stderr, "R input error\n");
287 if (aindex >= hp->h_narea) {
288 fprintf(stderr, "R area error\n");
292 ap = a[aindex]->a_bap;
297 rtbase = adw_w(0, 0);
303 pc = adw_w(a[aindex]->a_addr, 0);
306 printf("area %d base address: 0x%x size: 0x%x rtbase: 0x%x\n", aindex,
307 a[aindex]->a_addr, a[aindex]->a_size, rtbase);
310 * Do remaining relocations
316 if ((mode & R_ESCAPE_MASK) == R_ESCAPE_MASK)
318 mode = ((mode & ~R_ESCAPE_MASK) << 8) | eval();
319 /* printf("unescaping rmode\n"); */
326 * R_SYM or R_AREA references
329 if (rindex >= hp->h_nglob) {
330 fprintf(stderr, "R symbol error\n");
334 reli = symval(s[rindex]);
336 if (rindex >= hp->h_narea) {
337 fprintf(stderr, "R area error\n");
341 reli = a[rindex]->a_addr;
349 reli -= (pc + (rtp-rtofst) + 1);
351 reli -= (pc + (rtp-rtofst) + 2);
356 * R_PAG0 or R_PAG addressing
358 if (mode & (R_PAG0 | R_PAG)) {
359 paga = sdp.s_area->a_addr;
365 * R_BYTE or R_WORD operation
370 /* This is a three byte address, of which
371 * we will select one byte.
375 /* printf("24 bit address selecting hi byte.\n"); */
376 relv = adb_24_hi(reli, rtp);
378 else if (mode & R_MSB)
380 /* Note that in 24 bit mode, R_MSB
381 * is really the middle byte, not
382 * the most significant byte.
384 * This is ugly and I can only apologize
387 /* printf("24 bit address selecting middle byte.\n"); */
388 relv = adb_24_mid(reli, rtp);
392 /* printf("24 bit address selecting lo byte.\n"); */
393 relv = adb_24_lo(reli, rtp);
396 else if (mode & R_BYT2) {
397 /* This is a two byte address, of
398 * which we will select one byte.
401 relv = adb_hi(reli, rtp);
403 relv = adb_lo(reli, rtp);
406 relv = adb_b(reli, rtp);
408 } else if (IS_R_J11(mode)) {
409 /* JLH: 11 bit jump destination for 8051. Forms
410 / two byte instruction with op-code bits
412 / rtp points at 3 byte locus: first two
413 / will get the instructiion. third one
417 /* Calculate absolute destination
418 / relv must be on same 2K page as pc
420 relv = adw_w(reli, rtp);
422 if ((relv & ~0x7ff) != ((pc + rtp - rtofst) & ~0x7ff)) {
426 /* Merge MSB (byte 0) with op-code, ignoring
427 / top 5 bits of address. Then hide the op-code
429 rtval[rtp] = ((rtval[rtp] & 0x07)<<5) | rtval[rtp+2];
433 else if (IS_R_J19(mode)) {
434 /* 19 bit jump destination for DS80C390. Forms
435 / three byte instruction with op-code bits
437 / rtp points at 4 byte locus: first three
438 / will get the instructiion. fourth one
442 /* Calculate absolute destination
443 / relv must be on same 512K page as pc
445 relv = adw_24(reli, rtp);
447 if ((relv & ~0x7ffff) != ((pc + rtp - rtofst) & ~0x7ffff)) {
451 /* Merge MSB (byte 0) with op-code, ignoring
452 / top 5 bits of address. Then hide the op-code
454 rtval[rtp] = ((rtval[rtp] & 0x07)<<5) | rtval[rtp+3];
458 else if (IS_C24(mode))
461 relv = adw_24(reli, rtp);
465 /* 16 bit address. */
466 relv = adw_w(reli, rtp);
470 * R_BYTE with R_BYT2 offset adjust
479 * Unsigned Byte Checking
481 if (mode & R_USGN && mode & R_BYTE && relv & ~0xFF)
485 * PCR Relocation Error Checking
487 if (mode & R_PCR && mode & R_BYTE) {
489 if (r != (Addr_T) ~0x7F && r != 0)
494 * Page Relocation Error Checking
496 /* if (mode & R_PAG0 && (relv & ~0xFF || paga || pags))
498 if (mode & R_PAG && (relv & ~0xFF))
505 rerr.aindex = aindex;
507 rerr.rtbase = rtbase + rtp - rtofst - 1;
508 rerr.rindex = rindex;
509 rerr.rval = relv - reli;
510 relerr(errmsg[error-1]);
517 /* JLH: output only if data (beyond two byte address) */
518 if ((oflag == 1) && (rtcnt > 2)) {
519 // int extendedAddress = (a[aindex]->a_addr >> 16) & 0xffff;
521 /* Boy, is this a hack: for ABS sections, the
522 * base address is stored as zero, and the T records
523 * indicate the offset from zero.
525 * Since T records can only indicate a 16 bit offset, this
526 * obviously creates a problem for ABS segments located
527 * above 64K (this is only meaningful in flat24 mode).
529 * However, the size of an ABS area is stored as
530 * base address + section size (I suspect this is a bug,
531 * but it's a handy one right now). So the upper 8 bits of
532 * the 24 bit address are stored in the size record.
535 * This is another reason why we can't have areas greater
536 * than 64K yet, even in flat24 mode.
538 // extendedAddress += ((a[aindex]->a_size) >> 16 & 0xffff);
539 // commented out by jr
541 if (lastAreaIndex != aindex) {
542 lastAreaIndex = aindex;
546 if (extendedAddress != lastExtendedAddress)
549 if (lastExtendedAddress!=-1) {
550 printf("output extended linear address record 0x%x 0x%x\n",
551 extendedAddress, lastExtendedAddress);
556 ihxEntendedLinearAddress(extendedAddress);
558 else if (extendedAddress)
560 /* Not allowed to generate extended address records,
561 * but one is called for here...
564 "warning: extended linear address encountered; "
565 "you probably want the -r flag.\n");
567 lastExtendedAddress = extendedAddress;
572 if ((oflag == 2) && (rtcnt > 2)) {
575 if ((oflag == 3) && (rtcnt > 2)) {
581 "Unsigned Byte error",
582 "Byte PCR relocation error",
583 "Page0 relocation error",
584 "Page Mode relocation error"
588 /*)Function VOID relp()
590 * The function relp() evaluates a P line read by
591 * the linker. The P line data is combined with the
592 * previous T line data to set the base page address
593 * and test the paging boundary and length.
597 * P 0 0 nn nn n1 n2 xx xx
599 * The P line provides the paging information to the linker as
600 * specified by a .setdp directive. The format of the relocation
601 * information is identical to that of the R line. The correspond-
602 * ing T line has the following information:
603 * T xx xx aa aa bb bb
605 * Where aa aa is the area reference number which specifies the
606 * selected page area and bb bb is the base address of the page.
607 * bb bb will require relocation processing if the 'n1 n2 xx xx' is
608 * specified in the P line. The linker will verify that the base
609 * address is on a 256 byte boundary and that the page length of an
610 * area defined with the PAG type is not larger than 256 bytes.
613 * areax **a pointer to array of area pointers
614 * int aindex area index
615 * int mode relocation mode
616 * Addr_T relv relocation value
617 * int rindex symbol / area index
618 * int rtp index into T data
619 * sym **s pointer to array of symbol pointers
622 * head *hp pointer to the head structure
623 * int lkerr error flag
624 * sdp sdp base page structure
625 * FILE *stderr standard error device
628 * Addr_T adw_w() lkrloc.c
629 * Addr_T evword() lkrloc.c
630 * int eval() lkeval.c
631 * int fprintf() c_library
633 * int symval() lksym.c
636 * The P and T lines are combined to set
637 * the base page address and report any
645 register int aindex, rindex;
652 * Get area and symbol lists
660 if (eval() != (R_WORD | R_AREA) || eval()) {
661 fprintf(stderr, "P input error\n");
669 if (aindex >= hp->h_narea) {
670 fprintf(stderr, "P area error\n");
676 * Do remaining relocations
684 * R_SYM or R_AREA references
687 if (rindex >= hp->h_nglob) {
688 fprintf(stderr, "P symbol error\n");
692 relv = symval(s[rindex]);
694 if (rindex >= hp->h_narea) {
695 fprintf(stderr, "P area error\n");
699 relv = a[rindex]->a_addr;
708 if (aindex >= hp->h_narea) {
709 fprintf(stderr, "P area error\n");
713 sdp.s_areax = a[aindex];
714 sdp.s_area = sdp.s_areax->a_bap;
715 sdp.s_addr = adw_w(0,4);
716 if (sdp.s_area->a_addr & 0xFF || sdp.s_addr & 0xFF)
717 relerp("Page Definition Boundary Error");
720 /*)Function VOID rele()
722 * The function rele() closes all open output files
723 * at the end of the linking process.
729 * int oflag output type flag
730 * int uflag relocation listing flag
735 * VOID lkulist() lklist.c
739 * All open output files are closed.
760 /*)Function Addr_T evword()
762 * The function evword() combines two byte values
763 * into a single word value.
766 * Addr_T v temporary evaluation variable
769 * hilo byte ordering parameter
772 * int eval() lkeval.c
775 * Relocation text line is scanned to combine
776 * two byte values into a single word value.
795 /*)Function Addr_T adb_b(v, i)
797 * int v value to add to byte
798 * int i rtval[] index
800 * The function adb_b() adds the value of v to
801 * the single byte value contained in rtval[i].
802 * The new value of rtval[i] is returned.
814 * The value of rtval[] is changed.
823 return(rtval[i] += v);
826 /*)Function Addr_T adb_lo(v, i)
828 * int v value to add to byte
829 * int i rtval[] index
831 * The function adb_lo() adds the value of v to the
832 * double byte value contained in rtval[i] and rtval[i+1].
833 * The new value of rtval[i] / rtval[i+1] is returned.
834 * The MSB rtflg[] is cleared.
837 * Addr_T j temporary evaluation variable
840 * hilo byte ordering parameter
846 * The value of rtval[] is changed.
847 * The rtflg[] value corresponding to the
848 * MSB of the word value is cleared to reflect
849 * the fact that the LSB is the selected byte.
872 /*)Function Addr_T adb_hi(v, i)
874 * int v value to add to byte
875 * int i rtval[] index
877 * The function adb_hi() adds the value of v to the
878 * double byte value contained in rtval[i] and rtval[i+1].
879 * The new value of rtval[i] / rtval[i+1] is returned.
880 * The LSB rtflg[] is cleared.
883 * Addr_T j temporary evaluation variable
886 * hilo byte ordering parameter
892 * The value of rtval[] is changed.
893 * The rtflg[] value corresponding to the
894 * LSB of the word value is cleared to reflect
895 * the fact that the MSB is the selected byte.
918 /*)Function Addr_T adb_24_hi(v, i)
920 * int v value to add to byte
921 * int i rtval[] index
923 * The function adb_24_hi() adds the value of v to the
924 * 24 bit value contained in rtval[i] - rtval[i+2].
925 * The new value of rtval[i] / rtval[i+1] is returned.
926 * The LSB & middle byte rtflg[] is cleared.
929 * Addr_T j temporary evaluation variable
932 * hilo byte ordering parameter
938 * The value of rtval[] is changed.
939 * The rtflg[] value corresponding to the
940 * LSB & middle byte of the word value is cleared to
941 * reflect the fact that the MSB is the selected byte.
946 adb_24_hi(Addr_T v, int i)
952 /* Remove the lower two bytes. */
966 /*)Function Addr_T adb_24_mid(v, i)
968 * int v value to add to byte
969 * int i rtval[] index
971 * The function adb_24_mid() adds the value of v to the
972 * 24 bit value contained in rtval[i] - rtval[i+2].
973 * The new value of rtval[i] / rtval[i+1] is returned.
974 * The LSB & MSB byte rtflg[] is cleared.
977 * Addr_T j temporary evaluation variable
980 * hilo byte ordering parameter
986 * The value of rtval[] is changed.
987 * The rtflg[] value corresponding to the
988 * LSB & MSB of the 24 bit value is cleared to reflect
989 * the fact that the middle byte is the selected byte.
994 adb_24_mid(Addr_T v, int i)
1000 /* remove the MSB & LSB. */
1007 /*)Function Addr_T adb_24_lo(v, i)
1009 * int v value to add to byte
1010 * int i rtval[] index
1012 * The function adb_24_lo() adds the value of v to the
1013 * 24 bit value contained in rtval[i] - rtval[i+2].
1014 * The new value of rtval[i] / rtval[i+1] is returned.
1015 * The MSB & middle byte rtflg[] is cleared.
1018 * Addr_T j temporary evaluation variable
1021 * hilo byte ordering parameter
1027 * The value of rtval[] is changed.
1028 * The rtflg[] value corresponding to the
1029 * MSB & middle byte of the word value is cleared to
1030 * reflect the fact that the LSB is the selected byte.
1035 adb_24_lo(Addr_T v, int i)
1041 /* Remove the upper two bytes. */
1055 /*)Function Addr_T adw_w(v, i)
1057 * int v value to add to word
1058 * int i rtval[] index
1060 * The function adw_w() adds the value of v to the
1061 * word value contained in rtval[i] and rtval[i+1].
1062 * The new value of rtval[i] / rtval[i+1] is returned.
1065 * Addr_T j temporary evaluation variable
1068 * hilo byte ordering parameter
1074 * The word value of rtval[] is changed.
1086 j = v + (rtval[i] << 8) + (rtval[i+1] & 0xff);
1087 rtval[i] = (j >> 8) & 0xff;
1088 rtval[i+1] = j & 0xff;
1090 j = v + (rtval[i] & 0xff) + (rtval[i+1] << 8);
1091 rtval[i] = j & 0xff;
1092 rtval[i+1] = (j >> 8) & 0xff;
1097 /*)Function Addr_T adw_24(v, i)
1099 * int v value to add to word
1100 * int i rtval[] index
1102 * The function adw_w() adds the value of v to the
1103 * 24 bit value contained in rtval[i] - rtval[i+2].
1104 * The new value of rtval[i] - rtval[i+2] is returned.
1107 * Addr_T j temporary evaluation variable
1110 * hilo byte ordering parameter
1116 * The word value of rtval[] is changed.
1120 adw_24(Addr_T v, int i)
1125 j = v + ((rtval[i] & 0xff) << 16)
1126 + ((rtval[i+1] & 0xff) << 8)
1127 + (rtval[i+2] & 0xff);
1128 rtval[i] = (j >> 16) & 0xff;
1129 rtval[i+1] = (j >> 8) & 0xff;
1130 rtval[i+2] = j & 0xff;
1132 j = v + (rtval[i] & 0xff)
1133 + ((rtval[i+1] & 0xff) << 8)
1134 + ((rtval[i+2] & 0xff) << 16);
1135 rtval[i] = j & 0xff;
1136 rtval[i+1] = (j >> 8) & 0xff;
1137 rtval[i+2] = (j >> 16) & 0xff;
1142 /*)Function Addr_T adw_lo(v, i)
1144 * int v value to add to byte
1145 * int i rtval[] index
1147 * The function adw_lo() adds the value of v to the
1148 * double byte value contained in rtval[i] and rtval[i+1].
1149 * The new value of rtval[i] / rtval[i+1] is returned.
1150 * The MSB rtval[] is zeroed.
1153 * Addr_T j temporary evaluation variable
1156 * hilo byte ordering parameter
1162 * The value of rtval[] is changed.
1163 * The MSB of the word value is cleared to reflect
1164 * the fact that the LSB is the selected byte.
1187 /*)Function Addr_T adw_hi(v, i)
1189 * int v value to add to byte
1190 * int i rtval[] index
1192 * The function adw_hi() adds the value of v to the
1193 * double byte value contained in rtval[i] and rtval[i+1].
1194 * The new value of rtval[i] / rtval[i+1] is returned.
1195 * The MSB and LSB values are interchanged.
1196 * The MSB rtval[] is zeroed.
1199 * Addr_T j temporary evaluation variable
1202 * hilo byte ordering parameter
1208 * The value of rtval[] is changed.
1209 * The MSB and LSB values are interchanged and
1210 * then the MSB cleared.
1223 * LSB = MSB, Clear MSB
1226 rtval[i+1] = rtval[i];
1229 rtval[i] = rtval[i+1];
1235 /*)Function VOID relerr(str)
1237 * char *str error string
1239 * The function relerr() outputs the error string to
1240 * stderr and to the map file (if it is open).
1246 * FILE *mfp handle for the map file
1249 * VOID errdmp() lkrloc.c
1252 * Error message inserted into map file.
1260 errdmp(stderr, str);
1265 /*)Function VOID errdmp(fptr, str)
1267 * FILE *fptr output file handle
1268 * char *str error string
1270 * The function errdmp() outputs the error string str
1271 * to the device specified by fptr. Additional information
1272 * is output about the definition and referencing of
1273 * the symbol / area error.
1276 * int mode error mode
1277 * int aindex area index
1278 * int lkerr error flag
1279 * int rindex error index
1280 * sym **s pointer to array of symbol pointers
1281 * areax **a pointer to array of area pointers
1282 * areax *raxp error area extension pointer
1285 * sdp sdp base page structure
1288 * int fprintf() c_library
1289 * VOID prntval() lkrloc.c
1301 int mode, aindex, rindex;
1310 aindex = rerr.aindex;
1311 rindex = rerr.rindex;
1316 fprintf(fptr, "\n?ASlink-Warning-%s", str);
1320 * Print symbol if symbol based
1323 fprintf(fptr, " for symbol %s\n",
1324 &s[rindex]->s_id[0]);
1326 fprintf(fptr, "\n");
1333 " file module area offset\n");
1335 " Refby %-8.8s %-8.8s %-8.8s ",
1338 &a[aindex]->a_bap->a_id[0]);
1339 prntval(fptr, rerr.rtbase);
1345 raxp = s[rindex]->s_axp;
1350 " Defin %-8.8s %-8.8s %-8.8s ",
1351 raxp->a_bhp->h_lfile->f_idp,
1352 &raxp->a_bhp->m_id[0],
1353 &raxp->a_bap->a_id[0]);
1355 prntval(fptr, s[rindex]->s_addr);
1357 prntval(fptr, rerr.rval);
1361 /*)Function VOID prntval(fptr, v)
1363 * FILE *fptr output file handle
1364 * Addr_T v value to output
1366 * The function prntval() outputs the value v, in the
1367 * currently selected radix, to the device specified
1374 * int xflag current radix
1377 * int fprintf() c_library
1390 fprintf(fptr, "%04X\n", v);
1393 fprintf(fptr, "%06o\n", v);
1396 fprintf(fptr, "%05u\n", v);
1400 /*)Function VOID relerp(str)
1402 * char *str error string
1404 * The function relerp() outputs the paging error string to
1405 * stderr and to the map file (if it is open).
1411 * FILE *mfp handle for the map file
1414 * VOID erpdmp() lkrloc.c
1417 * Error message inserted into map file.
1425 erpdmp(stderr, str);
1430 /*)Function VOID erpdmp(fptr, str)
1432 * FILE *fptr output file handle
1433 * char *str error string
1435 * The function erpdmp() outputs the error string str
1436 * to the device specified by fptr.
1439 * head *thp pointer to head structure
1442 * int lkerr error flag
1443 * sdp sdp base page structure
1446 * int fprintf() c_library
1447 * VOID prntval() lkrloc.c
1459 register struct head *thp;
1461 thp = sdp.s_areax->a_bhp;
1466 fprintf(fptr, "\n?ASlink-Warning-%s\n", str);
1473 " file module pgarea pgoffset\n");
1475 " PgDef %-8.8s %-8.8s %-8.8s ",
1476 thp->h_lfile->f_idp,
1478 &sdp.s_area->a_id[0]);
1479 prntval(fptr, sdp.s_area->a_addr + sdp.s_addr);