aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff-in.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-26 23:42:58 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-26 23:42:58 +0000
commit86aac8eabe837aed915022d188da157ba5736c09 (patch)
tree7f6c7fad1c561070c8977aaee8c7a7c587ecc9f5 /bfd/libcoff-in.h
parenta77bf669dce7d953f2c32b162ccec49ed844f962 (diff)
downloadgdb-86aac8eabe837aed915022d188da157ba5736c09.zip
gdb-86aac8eabe837aed915022d188da157ba5736c09.tar.gz
gdb-86aac8eabe837aed915022d188da157ba5736c09.tar.bz2
* syms.c: Include "bfdlink.h".
(struct stab_find_info): Define. (_bfd_stab_section_find_nearest_line): New function. * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare. * libbfd.h: Rebuild. * elf-bfd.h (struct elf_obj_tdata): Add line_info field. * elf.c (_bfd_elf_find_nearest_line): Try calling _bfd_stab_section_find_nearest_line before searching the ELF symbol table. Find the closest STT_FUNC symbol, not the last one. * libcoff-in.h (coff_data_type): Add line_info field. * libcoff.h: Rebuild. * coffgen.c (coff_find_nearest_line): Try calling _bfd_stab_section_find_nearest_line before searching the COFF symbol table. * Makefile.in: Rebuild dependencies.
Diffstat (limited to 'bfd/libcoff-in.h')
-rw-r--r--bfd/libcoff-in.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index 820a75d..ce993b2 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -89,6 +89,9 @@ typedef struct coff_tdata
int *local_toc_sym_map;
struct bfd_link_info *link_info;
+
+ /* Used by coff_find_nearest_line. */
+ PTR line_info;
} coff_data_type;
/* Tdata for pe image files. */
@@ -117,11 +120,11 @@ struct xcoff_tdata
/* TOC value. */
bfd_vma toc;
- /* Section holding TOC. */
- asection *toc_section;
+ /* Index of section holding TOC. */
+ int sntoc;
- /* Section holding entry point. */
- asection *entry_section;
+ /* Index of section holding entry point. */
+ int snentry;
/* .text alignment from optional header. */
int text_align_power;
@@ -223,11 +226,6 @@ struct coff_link_hash_entry
/* Pointer to array of auxiliary entries, if any. */
union internal_auxent *aux;
-
- /* If this symbol requires an entry in the table of contents, the
- processor specific backend uses this field to hold the offset
- into the .toc section. */
- bfd_vma toc_offset;
};
/* COFF linker hash table. */