aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff-in.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-10-26 18:25:13 +0000
committerIan Lance Taylor <ian@airs.com>1995-10-26 18:25:13 +0000
commit867d923d18ef7eed7d016fdc04e8cf494d3c5db4 (patch)
tree5a28d483a9744201ad00936f826b774ff6a82bed /bfd/libcoff-in.h
parent328e5a48e87d75e0d0b63669c533025da6242a5e (diff)
downloadgdb-867d923d18ef7eed7d016fdc04e8cf494d3c5db4.zip
gdb-867d923d18ef7eed7d016fdc04e8cf494d3c5db4.tar.gz
gdb-867d923d18ef7eed7d016fdc04e8cf494d3c5db4.tar.bz2
* xcofflink.c: Numerous changes to get closer to a working XCOFF
linker. * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr, toc_section, and entry_section fields. (struct xcoff_section_tdata): Remove ldrel_count field. * libcoff.h: Rebuild. * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data fields. (coff_compute_section_file_positions): If RS6000COFF_C, generate full a.out header if full_aouthdr is set in xcoff_data. (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc based on sections stored in xcoff_data. * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data fields. * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the value stored in ret rather than returning a pointer value.
Diffstat (limited to 'bfd/libcoff-in.h')
-rw-r--r--bfd/libcoff-in.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index 0dd0184..7b818aa 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -105,9 +105,18 @@ struct xcoff_tdata
/* Basic COFF information. */
coff_data_type coff;
+ /* True if a large a.out header should be generated. */
+ boolean full_aouthdr;
+
/* TOC value. */
bfd_vma toc;
+ /* Section holding TOC. */
+ asection *toc_section;
+
+ /* Section holding entry point. */
+ asection *entry_section;
+
/* .text alignment from optional header. */
int text_align_power;
@@ -178,8 +187,6 @@ struct xcoff_section_tdata
by this csect. */
unsigned long first_symndx;
unsigned long last_symndx;
- /* The number of .loader relocs in this csect. */
- size_t ldrel_count;
};
/* An accessor macro the xcoff_section_tdata structure. */