aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-08-17 11:45:23 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-08-17 11:45:23 +0000
commitf3d2b04b5f22ad48ed6e62b207ba759694569935 (patch)
tree136b041b239142552b99099a4f99a521c2199ac2 /gas/config/obj-coff.c
parentf1f2b5f40ef91b70acaa733f6f92f08de5efa29f (diff)
downloadgdb-f3d2b04b5f22ad48ed6e62b207ba759694569935.zip
gdb-f3d2b04b5f22ad48ed6e62b207ba759694569935.tar.gz
gdb-f3d2b04b5f22ad48ed6e62b207ba759694569935.tar.bz2
2009-08-17 Kai Tietz <kai.tietz@onevision.com>
* config/obj-coff-seh.c: New file. * config/obj-coff-seh.h: Likewise. * config/obj-coff.c (obj-coff-seh.c): Add include. (coff_pseudo_table): Add new .seh... commands. * config/obj-coff.h (obj_coff_seh_do_final): Add new function prototype. (obj_coff_generate_pdata): New obj-coff hook. * gas/write.c (size_seg): Avoid sizing of already sized sections. (write_object_file): Call conditional hook objc_coff_generate_pdata. * Makefile.am: Add dependencies for new files. * Makefile.in: Regenerated.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 9b99ef5..fdda18e 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -53,6 +53,8 @@ static symbolS *def_symbol_in_progress;
static const char weak_altprefix[] = ".weak.";
#endif /* TE_PE */
+#include "obj-coff-seh.c"
+
typedef struct
{
unsigned long chunk_size;
@@ -1768,7 +1770,6 @@ coff_frob_section (segT sec)
SF_SET_STATICS (secsym);
SA_SET_SCN_SCNLEN (secsym, size);
}
-
/* FIXME: These should be in a "stabs.h" file, or maybe as.h. */
#ifndef STAB_SECTION_NAME
#define STAB_SECTION_NAME ".stab"
@@ -1877,6 +1878,9 @@ const pseudo_typeS coff_pseudo_table[] =
/* The tic4x uses sdef instead of def. */
{"sdef", obj_coff_def, 0},
#endif
+#if defined(SEH_CMDS)
+ SEH_CMDS
+#endif
{NULL, NULL, 0}
};