aboutsummaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2001-12-17 22:41:02 +0000
committerTom Rix <trix@redhat.com>2001-12-17 22:41:02 +0000
commitf94cac655291999adc7830dc28eebb1434337413 (patch)
treee520b0bff11c5703d69678608d179371d30fc951 /include/coff
parente5a9fb49afbb0a7b76c3f11ba6cfbf9124d52256 (diff)
downloadgdb-f94cac655291999adc7830dc28eebb1434337413.zip
gdb-f94cac655291999adc7830dc28eebb1434337413.tar.gz
gdb-f94cac655291999adc7830dc28eebb1434337413.tar.bz2
Add except and typeck section strings. Fix xcoff_big_format_p macro.
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog5
-rw-r--r--include/coff/xcoff.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 31ce1c4..969299b 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-17 Tom Rix <trix@redhat.com>
+
+ * xcoff.h : Add .except and .typchk section string.
+ Fix xcoff_big_format_p macro.
+
2001-12-16 Tom Rix <trix@redhat.com>
* xcoff.h : Clean up formatting.
diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h
index 3e82f02..b8fc378 100644
--- a/include/coff/xcoff.h
+++ b/include/coff/xcoff.h
@@ -31,6 +31,8 @@
#define _BSS ".bss"
#define _PAD ".pad"
#define _LOADER ".loader"
+#define _EXCEPT ".except"
+#define _TYPCHK ".typchk"
/* XCOFF uses a special .loader section with type STYP_LOADER. */
#define STYP_LOADER 0x1000
@@ -591,7 +593,9 @@ struct xcoff_ar_hdr_big
Make it a bit cleaner. We can use `xcoff_ardata' here because the
`hdr' member has the same size and position in both formats. */
#define xcoff_big_format_p(abfd) \
- (xcoff_ardata (abfd)->magic[1] == 'b')
+ ((NULL != bfd_ardata(abfd)) && \
+ (NULL != xcoff_ardata(abfd)) && \
+ (xcoff_ardata (abfd)->magic[1] == 'b'))
/* We store a copy of the xcoff_ar_file_hdr in the tdata field of the
artdata structure. Similar for the big archive. */