aboutsummaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-12-23 10:59:56 +0000
committerNick Clifton <nickc@redhat.com>2008-12-23 10:59:56 +0000
commit44f746428118afa8aa4108ca79bb356798fafe1d (patch)
treecada90ef677199b53f92e6d289268210ee30ecd2 /include/coff
parent2516a1ee84e4ca7604bf7d9da5cc3a4aaa95fba5 (diff)
downloadgdb-44f746428118afa8aa4108ca79bb356798fafe1d.zip
gdb-44f746428118afa8aa4108ca79bb356798fafe1d.tar.gz
gdb-44f746428118afa8aa4108ca79bb356798fafe1d.tar.bz2
* coffcode.h (coff_write_object_contents): Always initialise
section.s_page. * ti.h (COFF_ADJUST_SCNHDR_OUT_PRE): Define.
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog4
-rw-r--r--include/coff/ti.h9
2 files changed, 13 insertions, 0 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index ef5852a..53bf7e5 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-23 Johan Olmutz Nielsen <jnielsen@ddci.com>
+
+ * ti.h (COFF_ADJUST_SCNHDR_OUT_PRE): Define.
+
2008-06-17 Nick Clifton <nickc@redhat.com>
* ti.h (GET_SCNHDR_NLNNO): Provide an alternative version of this
diff --git a/include/coff/ti.h b/include/coff/ti.h
index 86f7a13..e0e1729 100644
--- a/include/coff/ti.h
+++ b/include/coff/ti.h
@@ -321,6 +321,15 @@ struct external_scnhdr {
} \
while (0)
+/* The entire scnhdr may not be assigned.
+ Ensure that everything is initialized. */
+#define COFF_ADJUST_SCNHDR_OUT_PRE(ABFD, INT, EXT) \
+ do \
+ { \
+ memset((EXT), 0, sizeof (SCNHDR)); \
+ } \
+ while (0)
+
/* The line number and reloc overflow checking in coff_swap_scnhdr_out in
coffswap.h doesn't use PUT_X for s_nlnno and s_nreloc.
Due to different sized v0/v1/v2 section headers, we have to re-write these