From 25b5a53dacb235c0464ba09f519ad2ce4cf2530d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 25 Sep 1995 20:03:11 +0000 Subject: * libcoff-in.h (struct coff_section_tdata): Add offset, i, function, and line_base fields. * libcoff.h: Rebuild. * coffgen.c (coff_find_nearest_line): Use section tdata to cache information, rather than using static variables. --- bfd/libcoff.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bfd/libcoff.h') diff --git a/bfd/libcoff.h b/bfd/libcoff.h index 8f2a45e..4e7d837 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -115,6 +115,11 @@ struct coff_section_tdata bfd_byte *contents; /* If this is true, the contents entry may not be freed. */ boolean keep_contents; + /* Information cached by coff_find_nearest_line. */ + bfd_vma offset; + unsigned int i; + const char *function; + int line_base; /* Available for individual backends. */ PTR tdata; }; -- cgit v1.1