Browse Source

* coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints

out tagndx too.
	* aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output
	section of a symbol rather than the section of a reffed symbol to
	determine the r_index of an emmitted reloc.
gdb-4_18-branch
Steve Chamberlain 35 years ago
parent
commit
d05511ca57
  1. 8
      bfd/ChangeLog
  2. 15
      bfd/coffcode.h

8
bfd/ChangeLog

@ -1,3 +1,11 @@
Fri Feb 21 10:57:54 1992 Steve Chamberlain (sac at rtl.cygnus.com)
* coffcode.h (coff_swap_aux_in): lint, (coff_print_symbol): prints
out tagndx too.
* aoutx.h (swap_std_reloc_out, swap_ext_reloc_out): use the output
section of a symbol rather than the section of a reffed symbol to
determine the r_index of an emmitted reloc.
Thu Feb 20 18:10:34 1992 Per Bothner (bothner at cygnus.com)
* PORTING: New (preliminary) porting guide.

15
bfd/coffcode.h

@ -556,15 +556,15 @@ DEFUN(coff_swap_sym_out,(abfd, inp, extp),
}
static void
DEFUN(coff_swap_aux_in,(abfd, ext1, type, class, in1),
DEFUN(coff_swap_aux_in,(abfd, ext1, type, class, in),
bfd *abfd AND
PTR ext1 AND
int type AND
int class AND
PTR in1)
union internal_auxent *in)
{
AUXENT *ext = (AUXENT *)ext1;
union internal_auxent *in = (union internal_auxent *)in1;
switch (class) {
case C_FILE:
if (ext->x_file.x_fname[0] == 0) {
@ -607,7 +607,6 @@ DEFUN(coff_swap_aux_in,(abfd, ext1, type, class, in1),
in->x_scn.x_nlinno = GET_SCN_NLINNO(abfd, ext);
break;
}
default:
in->x_sym.x_tagndx.l = bfd_h_get_32(abfd, (bfd_byte *) ext->x_sym.x_tagndx);
#ifndef NO_TVNDX
@ -1498,7 +1497,7 @@ unsigned int written)
coff_swap_sym_out(abfd, &native->u.syment, &buf);
bfd_write((PTR)& buf, 1, SYMESZ, abfd);
for (j = 0; j != native->u.syment.n_numaux; j++)
for (j = 0; j <= native->u.syment.n_numaux; j++)
{
AUXENT buf1;
bzero((PTR)&buf, AUXESZ);
@ -1881,9 +1880,10 @@ DEFUN(coff_print_symbol,(ignore_abfd, filep, symbol, how),
fprintf(file, "File ");
break;
default:
fprintf(file, "AUX lnno %x size %x",
fprintf(file, "AUX lnno %x size %x tagndx %x",
combined[aux+1].u.auxent.x_sym.x_misc.x_lnsz.x_lnno,
combined[aux+1].u.auxent.x_sym.x_misc.x_lnsz.x_size);
combined[aux+1].u.auxent.x_sym.x_misc.x_lnsz.x_size,
combined[aux+1].u.auxent.x_sym.x_tagndx.l);
break;
}
@ -2718,7 +2718,6 @@ bfd *abfd)
internal_ptr->fix_tag = 0;
internal_ptr->fix_end = 0;
coff_swap_aux_in(abfd, (char *)(raw_src),
symbol_ptr->u.syment.n_type,
symbol_ptr->u.syment.n_sclass,

Loading…
Cancel
Save