summaryrefslogtreecommitdiff
path: root/ld/align.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/align.h')
-rw-r--r--ld/align.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/align.h b/ld/align.h
new file mode 100644
index 0000000..ba33fb8
--- /dev/null
+++ b/ld/align.h
@@ -0,0 +1,10 @@
+/* align.h - memory alignment requirements for linker */
+
+/* Copyright (C) 1994 Bruce Evans */
+
+#ifndef S_ALIGNMENT
+# define align(x)
+#else
+# define align(x) ((x) = ((int) (x) + (S_ALIGNMENT-1)) & ~(S_ALIGNMENT-1))
+ /* assumes sizeof(int) == sizeof(char *) */
+#endif