aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-01 17:11:56 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-01 17:11:56 +0000
commit330595d00b81733b03df38810bbf2bb75f612a26 (patch)
tree96b8d5fb07ffdd8fdca5292b33a94b1a9ebd7d5f /bfd/coffgen.c
parent60ce6e743ced35607b04dacfc2940107a6985ba3 (diff)
downloadgdb-330595d00b81733b03df38810bbf2bb75f612a26.zip
gdb-330595d00b81733b03df38810bbf2bb75f612a26.tar.gz
gdb-330595d00b81733b03df38810bbf2bb75f612a26.tar.bz2
* coffcode.h (bfd_coff_backend_data): Added new arguments to
_bfd_coff_swap_aux_in and _bfd_coff_swap_aux_out: aux index number and number of aux entries. (bfd_coff_swap_aux_in, bfd_coff_swap_aux_out): Changed accordingly. * libcoff.h: Rebuilt. * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Accept new arguments. If RS6000COFF_C, only treat C_EXT and C_HIDEXT specially if this is the last aux entry. * coffgen.c (coff_write_symbol, coff_get_normalized_symtab): Pass new arguments to swap_aux functions.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index ebc596f..c9a570f 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -359,6 +359,7 @@ DEFUN(coff_count_linenumbers,(abfd),
/* Takes a bfd and a symbol, returns a pointer to the coff specific
area of the symbol if there is one. */
+/*ARGSUSED*/
coff_symbol_type *
DEFUN(coff_symbol_from,(ignore_abfd, symbol),
bfd *ignore_abfd AND
@@ -641,6 +642,8 @@ unsigned int written)
&((native + j + 1)->u.auxent),
type,
class,
+ j,
+ native->u.syment.n_numaux,
buf);
bfd_write(buf, 1, auxesz, abfd);
}
@@ -892,6 +895,7 @@ DEFUN(coff_write_linenumbers,(abfd),
bfd_release (abfd, buff);
}
+/*ARGSUSED*/
alent *
DEFUN(coff_get_lineno,(ignore_abfd, symbol),
bfd *ignore_abfd AND
@@ -1143,6 +1147,7 @@ bfd *abfd)
bfd_coff_swap_aux_in(abfd, (PTR) raw_src,
symbol_ptr->u.syment.n_type,
symbol_ptr->u.syment.n_sclass,
+ i, symbol_ptr->u.syment.n_numaux,
&(internal_ptr->u.auxent));
/* Remember that bal entries arn't pointerized */
if (i != 1 || symbol_ptr->u.syment.n_sclass != C_LEAFPROC)
@@ -1284,6 +1289,7 @@ coff_bfd_make_debug_symbol (abfd, ptr, sz)
return &new->symbol;
}
+/*ARGSUSED*/
void
coff_get_symbol_info (abfd, symbol, ret)
bfd *abfd;
@@ -1392,6 +1398,7 @@ coff_print_symbol (abfd, filep, symbol, how)
and return the name of the source file and the line nearest to the
wanted location. */
+/*ARGSUSED*/
boolean
DEFUN(coff_find_nearest_line,(abfd,
section,