aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-02-06 19:22:03 +0000
committerSteve Chamberlain <sac@cygnus>1992-02-06 19:22:03 +0000
commit2f8640fe6a981092e5a43f5ef83a4332762c6a05 (patch)
treee03b8b83ce72c97ede9b2ab7e64c691d7d61f939 /bfd/libcoff.h
parent778c358df87975dbb184af6908a9f073cf597ca1 (diff)
downloadgdb-2f8640fe6a981092e5a43f5ef83a4332762c6a05.zip
gdb-2f8640fe6a981092e5a43f5ef83a4332762c6a05.tar.gz
gdb-2f8640fe6a981092e5a43f5ef83a4332762c6a05.tar.bz2
* coffcode.h, libcoff.c: added new fielded to coff_symbol_struct
"done_lineno" so that a symbol which appears twice in the symbol table only gets it's linenumbers relocated once. Modifed (coff_write_native_symbol) and (coff_make_empty_symbol) to make
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r--bfd/libcoff.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index 94a5664..0eba7a6 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -21,7 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Object file tdata; access macros */
-#define coff_data(bfd) ((coff_data_type *) ((bfd)->tdata))
+#define coff_data(bfd) ((bfd)->tdata.coff_obj_data)
#define exec_hdr(bfd) (coff_data(bfd)->hdr)
#define obj_symbols(bfd) (coff_data(bfd)->symbols)
#define obj_sym_filepos(bfd) (coff_data(bfd)->sym_filepos)
@@ -75,6 +75,7 @@ typedef struct coff_tdata
/* And more taken from the source .. */
+typedef struct coff_ptr_struct
{
/* Remembers the offset from the first symbol in the file for
@@ -103,13 +104,13 @@ union {
typedef struct coff_symbol_struct
{
- /* The actual symbol which the rest of BFD works with */
-asymbol symbol;
+ /* The actual symbol which the rest of BFD works with */
+ asymbol symbol;
- /* A pointer to the hidden information for this symbol */
-combined_entry_type *native;
-
- /* A pointer to the linenumber information for this symbol */
-struct lineno_cache_entry *lineno;
+ /* A pointer to the hidden information for this symbol */
+ combined_entry_type *native;
+ /* A pointer to the linenumber information for this symbol */
+ struct lineno_cache_entry *lineno;
+ boolean done_lineno;
} coff_symbol_type;