aboutsummaryrefslogtreecommitdiff
path: root/bfd/libnlm.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-04-21 16:13:01 +0000
committerIan Lance Taylor <ian@airs.com>1994-04-21 16:13:01 +0000
commit6c534df0c9f1b653b392984d1757c2732492ba34 (patch)
treea23c27ab83dfc9e9870d9f6940a4dd4327a74dc9 /bfd/libnlm.h
parent1f573a795dfcc69b66a3a1542b56ca99fd4816e7 (diff)
downloadgdb-6c534df0c9f1b653b392984d1757c2732492ba34.zip
gdb-6c534df0c9f1b653b392984d1757c2732492ba34.tar.gz
gdb-6c534df0c9f1b653b392984d1757c2732492ba34.tar.bz2
* libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr
field. (nlm_cygnus_section_header): New accessor macro. * nlmcode.h (nlm_object_p): Free new tdata structure if failure. Add fixed sections before swapping in auxiliary headers. After adding sections, treat errors as real, not as wrong format. (nlm_swap_auxiliary_headers_in): Swap in the sections header; add sections to the BFD for each section it describes. (nlm_swap_auxiliary_headers_out): Swap out the sections header. (nlm_compute_section_file_positions): Account for the size of the sections header.
Diffstat (limited to 'bfd/libnlm.h')
-rw-r--r--bfd/libnlm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/libnlm.h b/bfd/libnlm.h
index cf6885d..acdfcdf 100644
--- a/bfd/libnlm.h
+++ b/bfd/libnlm.h
@@ -91,6 +91,7 @@ struct nlm_obj_tdata
Nlm_Internal_Copyright_Header nlm_copyright_hdr[1];
Nlm_Internal_Extended_Header nlm_extended_hdr[1];
Nlm_Internal_Custom_Header nlm_custom_hdr[1];
+ Nlm_Internal_Cygnus_Section_Header nlm_cygnus_section_hdr[1];
/* BFD NLM symbols. */
nlmNAME(symbol_type) *nlm_symbols;
/* Lowest text and data VMA values. */
@@ -122,6 +123,7 @@ struct nlm_obj_tdata
#define nlm_copyright_header(bfd) (nlm_tdata(bfd) -> nlm_copyright_hdr)
#define nlm_extended_header(bfd) (nlm_tdata(bfd) -> nlm_extended_hdr)
#define nlm_custom_header(bfd) (nlm_tdata(bfd) -> nlm_custom_hdr)
+#define nlm_cygnus_section_header(bfd) (nlm_tdata(bfd)->nlm_cygnus_section_hdr)
#define nlm_get_symbols(bfd) (nlm_tdata(bfd) -> nlm_symbols)
#define nlm_set_symbols(bfd, p) (nlm_tdata(bfd) -> nlm_symbols = (p))
#define nlm_set_text_low(bfd, i) (nlm_tdata(bfd) -> nlm_text_low = (i))