summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authoriains <iains>2012-02-21 13:39:35 +0000
committeriains <iains>2012-02-21 13:39:35 +0000
commit048e0eff9bc931862bce03b20c4ae4d952aededf (patch)
tree4b2a6fd2a067a54f576b0152a37e04a529cf5ea9 /gas/write.c
parent831b5c60d116cf38ff03a1494ce98256b53dd17d (diff)
downloadbinutils-redhat-048e0eff9bc931862bce03b20c4ae4d952aededf.tar.gz
provide a hook to allow checking errors just before we output the file.
gas: * write.c (write_object_file): Add md_pre_output_hook. * config/obj-macho.c (obj_mach_o_check_before_writing): New. (obj_mach_o_pre_output_hook): New. * config/obj-macho.h (md_pre_output_hook): Define. (obj_mach_o_pre_output_hook): Declare.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index f640c6103d..23d4334289 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1767,6 +1767,10 @@ write_object_file (void)
fragS *fragP; /* Track along all frags. */
#endif
+#ifdef md_pre_output_hook
+ md_pre_output_hook;
+#endif
+
/* Do we really want to write it? */
{
int n_warns, n_errs;