aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m88k.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-m88k.h')
-rw-r--r--gas/config/tc-m88k.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/config/tc-m88k.h b/gas/config/tc-m88k.h
index ac8289e..f938ee4 100644
--- a/gas/config/tc-m88k.h
+++ b/gas/config/tc-m88k.h
@@ -90,4 +90,15 @@ struct reloc_info_m88k
/* No special hook needed for symbols. */
#define tc_coff_symbol_emit_hook(s)
+/* Align sections to a four byte boundary. */
+#ifndef max
+#define max(a,b) (((a) > (b)) ? (a) : (b))
+#endif
+#define SUB_SEGMENT_ALIGN(SEG) max (section_alignment[(int) (SEG)], 4)
+
+/* We use a special alignment function to insert the correct nop
+ pattern in .init. */
+extern int m88k_do_align PARAMS ((int, const char *));
+#define md_do_align(n,fill,l) if (m88k_do_align(n,fill)) goto l
+
#endif /* M88KCOFF */