aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2001-12-18 00:32:32 +0000
committerTom Rix <trix@redhat.com>2001-12-18 00:32:32 +0000
commit67fdeebeb2246ec95449f9b1428ae000f7744e92 (patch)
treef90f1ca2cfaf396023e8d983caf1aa24ddd9f8ff
parent84b229ef245c6c5700d16fca9788a3613d3e6977 (diff)
downloadgdb-67fdeebeb2246ec95449f9b1428ae000f7744e92.zip
gdb-67fdeebeb2246ec95449f9b1428ae000f7744e92.tar.gz
gdb-67fdeebeb2246ec95449f9b1428ae000f7744e92.tar.bz2
Minimal handle .typchk and .except section.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coffcode.h8
-rw-r--r--include/coff/ChangeLog2
-rw-r--r--include/coff/xcoff.h9
4 files changed, 23 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fe895c4..ca9acb8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-17 Tom Rix <trix@porter.hsv.redhat.com>
+
+ * coffcode.h (sec_to_styp_flags): Add STYP_EXCEPT and STYP_TYPCHK for
+ xcoff.
+
2001-12-17 Jakub Jelinek <jakub@redhat.com>
* elf-bfd.h (elf_discarded_section): Define.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index c2a2950..d759115 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -428,6 +428,14 @@ sec_to_styp_flags (sec_name, sec_flags)
{
styp_flags = STYP_LOADER;
}
+ else if (!strcmp (sec_name, _EXCEPT))
+ {
+ styp_flags = STYP_EXCEPT;
+ }
+ else if (!strcmp (sec_name, _TYPCHK))
+ {
+ styp_flags = STYP_TYPCHK;
+ }
#endif
/* Try and figure out what it should be */
else if (sec_flags & SEC_CODE)
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 969299b..6e14207 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,6 +1,6 @@
2001-12-17 Tom Rix <trix@redhat.com>
- * xcoff.h : Add .except and .typchk section string.
+ * xcoff.h : Add .except and .typchk section string and styp flags.
Fix xcoff_big_format_p macro.
2001-12-16 Tom Rix <trix@redhat.com>
diff --git a/include/coff/xcoff.h b/include/coff/xcoff.h
index b8fc378..e9dbaf2 100644
--- a/include/coff/xcoff.h
+++ b/include/coff/xcoff.h
@@ -44,6 +44,15 @@
another section header with STYP_OVRFLO set. */
#define STYP_OVRFLO 0x8000
+/* Specifies an exception section. A section of this type provides
+ information to identify the reason that a trap or ececptin occured within
+ and executable object program */
+#define STYP_EXCEPT 0x0100
+
+/* Specifies a type check section. A section of this type contains parameter
+ argument type check strings used by the AIX binder. */
+#define STYP_TYPCHK 0x4000
+
#define RS6K_AOUTHDR_OMAGIC 0x0107 /* old: text & data writeable */
#define RS6K_AOUTHDR_NMAGIC 0x0108 /* new: text r/o, data r/w */
#define RS6K_AOUTHDR_ZMAGIC 0x010B /* paged: text r/o, both page-aligned */